home *** CD-ROM | disk | FTP | other *** search
/ Mac Power 1997 January / macpower199701.bin / AMUG / Programming_10 / Videotoolbox 96-08-22-c.sit / VideoToolbox / (Utilities) / Quick3 / Quick3.c < prev    next >
MacBinary  |  1996-01-12  |  18.3 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text

This file was processed as: MacBinary (archive/macBinary).

You can browse this item here: Quick3.c

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Fri Jan 12 23:32:47 1996, modified Fri Jan 12 23:32:47 1996, creator 'CWIE', type ASCII, 17562 bytes "Quick3.c" , at 0x451a 810 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 51 75 69 63 6b 33 | 2e 63 00 00 00 00 00 00 |..Quick3|.c......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 44 9a 00 | 00 03 2a ad 1c e6 6f ad |.....D..|..*...o.|
|00000060| 1c e6 6f 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |..o.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 47 af 00 00 |........|....G...|
|00000080| 2f 2a 0d 51 75 69 63 6b | 33 2e 63 20 0d 43 6f 70 |/*.Quick|3.c .Cop|
|00000090| 79 72 69 67 68 74 20 28 | 63 29 20 31 39 39 30 2d |yright (|c) 1990-|
|000000a0| 31 39 39 33 20 44 65 6e | 69 73 20 47 2e 20 50 65 |1993 Den|is G. Pe|
|000000b0| 6c 6c 69 20 0d 51 75 69 | 63 6b 33 2e 63 20 69 73 |lli .Qui|ck3.c is|
|000000c0| 20 61 20 43 20 70 72 6f | 67 72 61 6d 20 74 68 61 | a C pro|gram tha|
|000000d0| 74 20 6d 61 6b 65 73 20 | 6d 61 78 69 6d 75 6d 20 |t makes |maximum |
|000000e0| 6c 69 6b 65 6c 69 68 6f | 6f 64 20 66 69 74 73 20 |likeliho|od fits |
|000000f0| 6f 66 20 73 69 6d 70 6c | 65 20 6d 6f 64 65 6c 73 |of simpl|e models|
|00000100| 20 74 6f 0d 70 73 79 63 | 68 6f 6d 65 74 72 69 63 | to.psyc|hometric|
|00000110| 20 64 61 74 61 2e 20 54 | 68 69 73 20 69 73 20 61 | data. T|his is a|
|00000120| 20 72 65 70 6c 61 63 65 | 6d 65 6e 74 20 66 6f 72 | replace|ment for|
|00000130| 2c 20 61 6e 64 20 74 6f | 20 73 6f 6d 65 20 65 78 |, and to| some ex|
|00000140| 74 65 6e 74 20 69 73 20 | 64 65 72 69 76 65 64 20 |tent is |derived |
|00000150| 66 72 6f 6d 0d 74 68 65 | 20 6f 6c 64 20 51 55 49 |from.the| old QUI|
|00000160| 43 4b 2e 46 4f 52 20 70 | 72 6f 67 72 61 6d 20 77 |CK.FOR p|rogram w|
|00000170| 72 69 74 74 65 6e 20 62 | 79 20 41 2e 42 2e 57 61 |ritten b|y A.B.Wa|
|00000180| 74 73 6f 6e 2e 20 53 65 | 65 20 41 2e 42 2e 57 61 |tson. Se|e A.B.Wa|
|00000190| 74 73 6f 6e 20 28 31 39 | 37 39 29 0d 50 72 6f 62 |tson (19|79).Prob|
|000001a0| 61 62 69 6c 69 74 79 20 | 73 75 6d 6d 61 74 69 6f |ability |summatio|
|000001b0| 6e 20 6f 76 65 72 20 74 | 69 6d 65 2e 20 56 69 73 |n over t|ime. Vis|
|000001c0| 69 6f 6e 20 52 65 73 65 | 61 72 63 68 20 31 39 2c |ion Rese|arch 19,|
|000001d0| 20 35 31 35 2d 35 32 32 | 2e 0d 0d 54 68 65 20 70 | 515-522|...The p|
|000001e0| 72 69 6e 63 69 70 61 6c | 20 64 69 66 66 65 72 65 |rincipal| differe|
|000001f0| 6e 63 65 20 62 65 74 77 | 65 65 6e 20 74 68 69 73 |nce betw|een this|
|00000200| 20 70 72 6f 67 72 61 6d | 20 61 6e 64 20 74 68 65 | program| and the|
|00000210| 20 6f 72 69 67 69 6e 61 | 6c 20 51 55 49 43 4b 2c | origina|l QUICK,|
|00000220| 20 69 73 20 69 6e 20 68 | 6f 77 0d 74 68 65 20 67 | is in h|ow.the g|
|00000230| 6f 6f 64 6e 65 73 73 20 | 6f 66 20 66 69 74 20 69 |oodness |of fit i|
|00000240| 73 20 63 61 6c 63 75 6c | 61 74 65 64 2e 20 42 6f |s calcul|ated. Bo|
|00000250| 74 68 20 70 72 6f 67 72 | 61 6d 73 20 61 73 73 65 |th progr|ams asse|
|00000260| 73 73 20 74 68 65 20 67 | 6f 6f 64 6e 65 73 73 20 |ss the g|oodness |
|00000270| 6f 66 20 66 69 74 20 62 | 79 0d 63 6f 6d 70 61 72 |of fit b|y.compar|
|00000280| 69 6e 67 20 74 68 65 20 | 6c 6f 67 20 6c 69 6b 65 |ing the |log like|
|00000290| 6c 69 68 6f 6f 64 73 20 | 6f 66 20 74 68 65 20 6d |lihoods |of the m|
|000002a0| 6f 64 65 6c 20 66 69 74 | 20 28 75 73 75 61 6c 6c |odel fit| (usuall|
|000002b0| 79 20 57 65 69 62 75 6c | 6c 29 20 77 69 74 68 20 |y Weibul|l) with |
|000002c0| 61 20 6e 75 6c 6c 0d 68 | 79 70 6f 74 68 65 73 69 |a null.h|ypothesi|
|000002d0| 73 2e 20 4d 69 6e 75 73 | 20 74 77 6f 20 74 69 6d |s. Minus| two tim|
|000002e0| 65 73 20 74 68 69 73 20 | 6c 6f 67 20 6c 69 6b 65 |es this |log like|
|000002f0| 6c 69 68 6f 6f 64 20 72 | 61 74 69 6f 20 69 73 20 |lihood r|atio is |
|00000300| 61 70 70 72 6f 78 69 6d | 61 74 65 6c 79 20 63 68 |approxim|ately ch|
|00000310| 69 0d 73 71 75 61 72 65 | 2c 20 77 69 74 68 20 61 |i.square|, with a|
|00000320| 20 6e 75 6d 62 65 72 20 | 6f 66 20 64 65 67 72 65 | number |of degre|
|00000330| 65 73 20 6f 66 20 66 72 | 65 65 64 6f 6d 20 65 71 |es of fr|eedom eq|
|00000340| 75 61 6c 20 74 6f 20 74 | 68 65 20 64 69 66 66 65 |ual to t|he diffe|
|00000350| 72 65 6e 63 65 20 69 6e | 20 64 65 67 72 65 65 73 |rence in| degrees|
|00000360| 0d 6f 66 20 66 72 65 65 | 64 6f 6d 20 6f 66 20 74 |.of free|dom of t|
|00000370| 68 65 20 74 77 6f 20 68 | 79 70 6f 74 68 65 73 65 |he two h|ypothese|
|00000380| 73 2e 20 51 55 49 43 4b | 20 75 73 65 64 20 61 6e |s. QUICK| used an|
|00000390| 20 75 6e 63 6f 6e 73 74 | 72 61 69 6e 65 64 20 70 | unconst|rained p|
|000003a0| 73 79 63 68 6f 6d 65 74 | 72 69 63 0d 66 75 6e 63 |sychomet|ric.func|
|000003b0| 74 69 6f 6e 2c 20 77 68 | 69 63 68 20 61 64 6f 70 |tion, wh|ich adop|
|000003c0| 74 65 64 20 74 68 65 20 | 61 63 74 75 61 6c 20 70 |ted the |actual p|
|000003d0| 72 6f 70 6f 72 74 69 6f | 6e 20 63 6f 72 72 65 63 |roportio|n correc|
|000003e0| 74 20 61 74 20 65 61 63 | 68 20 63 6f 6e 74 72 61 |t at eac|h contra|
|000003f0| 73 74 2e 20 51 75 69 63 | 6b 33 0d 75 73 65 73 20 |st. Quic|k3.uses |
|00000400| 61 20 6d 6f 6e 6f 74 6f | 6e 65 20 68 79 70 6f 74 |a monoto|ne hypot|
|00000410| 68 65 73 69 73 20 74 68 | 61 74 20 69 73 20 63 6f |hesis th|at is co|
|00000420| 6e 73 74 72 61 69 6e 65 | 64 20 74 6f 20 62 65 20 |nstraine|d to be |
|00000430| 6d 6f 6e 6f 74 6f 6e 69 | 63 61 6c 6c 79 20 69 6e |monotoni|cally in|
|00000440| 63 72 65 61 73 69 6e 67 | 0d 61 73 20 61 20 66 75 |creasing|.as a fu|
|00000450| 6e 63 74 69 6f 6e 20 6f | 66 20 63 6f 6e 74 72 61 |nction o|f contra|
|00000460| 73 74 2e 20 54 68 65 20 | 76 69 72 74 75 65 20 6f |st. The |virtue o|
|00000470| 66 20 74 68 65 20 6c 61 | 74 74 65 72 20 68 79 70 |f the la|tter hyp|
|00000480| 6f 74 68 65 73 69 73 20 | 69 73 20 74 68 61 74 20 |othesis |is that |
|00000490| 69 74 20 69 73 0d 65 61 | 73 69 65 72 20 74 6f 20 |it is.ea|sier to |
|000004a0| 65 73 74 69 6d 61 74 65 | 20 69 74 73 20 64 65 67 |estimate| its deg|
|000004b0| 72 65 65 73 20 6f 66 20 | 66 72 65 65 64 6f 6d 20 |rees of |freedom |
|000004c0| 77 68 65 6e 20 74 68 65 | 72 65 20 61 72 65 20 75 |when the|re are u|
|000004d0| 6e 65 71 75 61 6c 20 6e | 75 6d 62 65 72 73 20 6f |nequal n|umbers o|
|000004e0| 66 20 64 61 74 61 0d 70 | 6f 69 6e 74 73 20 61 74 |f data.p|oints at|
|000004f0| 20 65 61 63 68 20 63 6f | 6e 74 72 61 73 74 2e 20 | each co|ntrast. |
|00000500| 28 48 6f 77 65 76 65 72 | 2c 20 74 68 69 73 20 65 |(However|, this e|
|00000510| 73 74 69 6d 61 74 65 20 | 69 73 20 73 65 61 74 2d |stimate |is seat-|
|00000520| 6f 66 2d 6d 79 2d 70 61 | 6e 74 73 2e 29 20 46 69 |of-my-pa|nts.) Fi|
|00000530| 6e 61 6c 6c 79 2c 0d 74 | 68 69 73 20 70 72 6f 67 |nally,.t|his prog|
|00000540| 72 61 6d 20 61 63 74 75 | 61 6c 6c 79 20 63 6f 6d |ram actu|ally com|
|00000550| 70 75 74 65 73 20 74 68 | 65 20 73 69 67 6e 69 66 |putes th|e signif|
|00000560| 69 63 61 6e 63 65 20 66 | 6f 72 20 79 6f 75 2c 20 |icance f|or you, |
|00000570| 66 72 6f 6d 20 74 68 65 | 20 63 68 69 20 73 71 75 |from the| chi squ|
|00000580| 61 72 65 0d 76 61 6c 75 | 65 20 61 6e 64 20 74 68 |are.valu|e and th|
|00000590| 65 20 65 73 74 69 6d 61 | 74 65 20 6f 66 20 69 74 |e estima|te of it|
|000005a0| 73 20 64 65 67 72 65 65 | 73 20 6f 66 20 66 72 65 |s degree|s of fre|
|000005b0| 65 64 6f 6d 2e 20 54 68 | 69 73 20 73 69 67 6e 69 |edom. Th|is signi|
|000005c0| 66 69 63 61 6e 63 65 20 | 76 61 6c 75 65 20 69 73 |ficance |value is|
|000005d0| 20 6f 66 0d 73 6f 6d 65 | 20 75 73 65 20 69 6e 20 | of.some| use in |
|000005e0| 63 68 6f 6f 73 69 6e 67 | 20 61 20 73 6d 61 6c 6c |choosing| a small|
|000005f0| 20 66 72 61 63 74 69 6f | 6e 20 6f 66 20 79 6f 75 | fractio|n of you|
|00000600| 72 20 66 69 74 73 20 74 | 6f 20 64 69 73 63 61 72 |r fits t|o discar|
|00000610| 64 20 28 65 2e 67 2e 20 | 69 66 0d 73 69 67 6e 69 |d (e.g. |if.signi|
|00000620| 66 69 63 61 6e 63 65 20 | 69 73 20 6c 65 73 73 20 |ficance |is less |
|00000630| 74 68 61 6e 20 30 2e 30 | 35 29 2e 20 54 68 69 73 |than 0.0|5). This|
|00000640| 20 73 69 67 6e 69 66 69 | 63 61 6e 63 65 20 69 73 | signifi|cance is|
|00000650| 20 6d 69 73 6c 65 61 64 | 69 6e 67 6c 79 20 6c 6f | mislead|ingly lo|
|00000660| 77 20 77 68 65 6e 20 62 | 6f 74 68 0d 68 79 70 6f |w when b|oth.hypo|
|00000670| 74 68 65 73 65 73 20 68 | 61 76 65 20 6e 65 61 72 |theses h|ave near|
|00000680| 6c 79 20 74 68 65 20 73 | 61 6d 65 20 6e 75 6d 62 |ly the s|ame numb|
|00000690| 65 72 20 6f 66 20 64 65 | 67 72 65 65 73 20 6f 66 |er of de|grees of|
|000006a0| 20 66 72 65 65 64 6f 6d | 20 28 69 2e 65 2e 20 79 | freedom| (i.e. y|
|000006b0| 6f 75 20 6f 6e 6c 79 20 | 68 61 76 65 0d 61 20 66 |ou only |have.a f|
|000006c0| 65 77 20 63 6f 6e 74 72 | 61 73 74 73 29 2e 20 4c |ew contr|asts). L|
|000006d0| 6f 6f 6b 69 6e 67 20 61 | 74 20 74 68 65 20 73 69 |ooking a|t the si|
|000006e0| 67 6e 69 66 69 63 61 6e | 63 65 20 69 73 20 68 65 |gnifican|ce is he|
|000006f0| 6c 70 66 75 6c 2c 20 62 | 75 74 20 6e 6f 74 20 61 |lpful, b|ut not a|
|00000700| 20 73 75 62 73 74 69 74 | 75 74 65 0d 66 6f 72 20 | substit|ute.for |
|00000710| 74 68 69 6e 6b 69 6e 67 | 20 61 62 6f 75 74 20 77 |thinking| about w|
|00000720| 68 65 74 68 65 72 20 79 | 6f 75 72 20 72 65 73 75 |hether y|our resu|
|00000730| 6c 74 73 20 61 72 65 20 | 72 65 61 6c 6c 79 20 72 |lts are |really r|
|00000740| 65 61 73 6f 6e 61 62 6c | 65 2e 0d 0d 4e 6f 74 65 |easonabl|e...Note|
|00000750| 20 74 68 61 74 20 51 75 | 69 63 6b 33 2e 63 20 69 | that Qu|ick3.c i|
|00000760| 73 20 6a 75 73 74 20 61 | 20 66 72 6f 6e 74 20 65 |s just a| front e|
|00000770| 6e 64 2c 20 64 65 61 6c | 69 6e 67 20 77 69 74 68 |nd, deal|ing with|
|00000780| 20 74 68 65 20 75 73 65 | 72 20 69 6e 74 65 72 66 | the use|r interf|
|00000790| 61 63 65 20 61 6e 64 0d | 72 65 61 64 69 6e 67 20 |ace and.|reading |
|000007a0| 61 6e 64 20 77 72 69 74 | 69 6e 67 20 66 69 6c 65 |and writ|ing file|
|000007b0| 73 2e 20 41 6c 6c 20 74 | 68 65 20 77 6f 72 6b 20 |s. All t|he work |
|000007c0| 69 73 20 64 6f 6e 65 20 | 62 79 20 6f 6e 65 20 63 |is done |by one c|
|000007d0| 61 6c 6c 20 74 6f 0d 50 | 73 79 63 68 6f 6d 65 74 |all to.P|sychomet|
|000007e0| 72 69 63 46 69 74 28 29 | 2e 20 49 6e 20 6d 61 6e |ricFit()|. In man|
|000007f0| 79 20 63 61 73 65 73 20 | 69 74 20 77 69 6c 6c 20 |y cases |it will |
|00000800| 62 65 20 63 6f 6e 76 65 | 6e 69 65 6e 74 20 74 6f |be conve|nient to|
|00000810| 20 63 61 6c 6c 20 74 68 | 61 74 20 72 6f 75 74 69 | call th|at routi|
|00000820| 6e 65 0d 64 69 72 65 63 | 74 6c 79 20 66 72 6f 6d |ne.direc|tly from|
|00000830| 20 79 6f 75 72 20 70 72 | 6f 67 72 61 6d 20 74 68 | your pr|ogram th|
|00000840| 61 74 20 63 6f 6c 6c 65 | 63 74 73 20 28 6f 72 20 |at colle|cts (or |
|00000850| 67 65 6e 65 72 61 74 65 | 73 29 20 74 68 65 20 64 |generate|s) the d|
|00000860| 61 74 61 2c 20 72 61 74 | 68 65 72 20 74 68 61 6e |ata, rat|her than|
|00000870| 0d 73 61 76 69 6e 67 20 | 74 68 65 20 64 61 74 61 |.saving |the data|
|00000880| 20 69 6e 20 61 20 66 69 | 6c 65 20 66 6f 72 20 73 | in a fi|le for s|
|00000890| 75 62 73 65 71 75 65 6e | 74 20 61 6e 61 6c 79 73 |ubsequen|t analys|
|000008a0| 69 73 20 62 79 20 51 75 | 69 63 6b 33 2e 63 2e 20 |is by Qu|ick3.c. |
|000008b0| 49 66 20 79 6f 75 20 77 | 61 6e 74 20 74 6f 0d 75 |If you w|ant to.u|
|000008c0| 73 65 20 61 20 70 73 79 | 63 68 6f 6d 65 74 72 69 |se a psy|chometri|
|000008d0| 63 20 6d 6f 64 65 6c 20 | 6f 74 68 65 72 20 74 68 |c model |other th|
|000008e0| 61 6e 20 74 68 65 20 57 | 65 69 62 75 6c 6c 20 66 |an the W|eibull f|
|000008f0| 75 6e 63 74 69 6f 6e 20 | 61 6c 6c 20 79 6f 75 20 |unction |all you |
|00000900| 6e 65 65 64 20 74 6f 20 | 64 6f 20 69 73 0d 77 72 |need to |do is.wr|
|00000910| 69 74 65 20 61 20 73 6d | 61 6c 6c 20 66 75 6e 63 |ite a sm|all func|
|00000920| 74 69 6f 6e 20 74 6f 20 | 69 6d 70 6c 65 6d 65 6e |tion to |implemen|
|00000930| 74 20 69 74 2c 20 62 61 | 73 65 64 20 6f 6e 20 57 |t it, ba|sed on W|
|00000940| 65 69 62 75 6c 6c 2e 63 | 2e 20 49 74 20 73 68 6f |eibull.c|. It sho|
|00000950| 75 6c 64 20 62 65 20 65 | 61 73 79 2e 0d 50 73 79 |uld be e|asy..Psy|
|00000960| 63 68 6f 6d 65 74 72 69 | 63 46 69 74 28 29 20 75 |chometri|cFit() u|
|00000970| 73 65 73 20 77 68 61 74 | 65 76 65 72 20 70 73 79 |ses what|ever psy|
|00000980| 63 68 6f 6d 65 74 72 69 | 63 20 66 75 6e 63 74 69 |chometri|c functi|
|00000990| 6f 6e 20 69 73 20 73 75 | 70 70 6c 69 65 64 20 69 |on is su|pplied i|
|000009a0| 6e 20 74 68 65 20 63 61 | 6c 6c 2e 0d 0d 51 75 69 |n the ca|ll...Qui|
|000009b0| 63 6b 33 20 72 65 61 64 | 73 20 69 6e 20 79 6f 75 |ck3 read|s in you|
|000009c0| 72 20 64 61 74 61 20 66 | 72 6f 6d 20 61 20 74 65 |r data f|rom a te|
|000009d0| 78 74 20 66 69 6c 65 20 | 61 6e 64 20 61 6e 61 6c |xt file |and anal|
|000009e0| 79 7a 65 73 20 74 68 65 | 6d 2e 20 54 68 65 20 72 |yzes the|m. The r|
|000009f0| 65 73 75 6c 74 73 20 61 | 72 65 0d 73 68 6f 77 6e |esults a|re.shown|
|00000a00| 20 6f 6e 20 74 68 65 20 | 73 63 72 65 65 6e 2c 20 | on the |screen, |
|00000a10| 61 6e 64 20 61 72 65 20 | 73 61 76 65 64 20 69 6e |and are |saved in|
|00000a20| 20 74 77 6f 20 6b 69 6e | 64 73 20 6f 66 20 6f 75 | two kin|ds of ou|
|00000a30| 74 70 75 74 20 66 69 6c | 65 2e 20 54 68 65 20 2a |tput fil|e. The *|
|00000a40| 2e 66 69 74 20 66 69 6c | 65 20 69 73 0d 69 6e 20 |.fit fil|e is.in |
|00000a50| 45 78 63 65 6c 20 66 6f | 72 6d 61 74 20 61 6e 64 |Excel fo|rmat and|
|00000a60| 20 68 61 73 20 6a 75 73 | 74 20 61 20 6d 69 6e 69 | has jus|t a mini|
|00000a70| 6d 61 6c 20 6f 6e 65 2d | 6c 69 6e 65 20 73 75 6d |mal one-|line sum|
|00000a80| 6d 61 72 79 20 66 6f 72 | 20 65 61 63 68 20 63 6f |mary for| each co|
|00000a90| 6e 64 69 74 69 6f 6e 2c | 0d 67 69 76 69 6e 67 20 |ndition,|.giving |
|00000aa0| 74 68 65 20 70 61 72 61 | 6d 65 74 65 72 73 20 61 |the para|meters a|
|00000ab0| 6e 64 20 67 6f 6f 64 6e | 65 73 73 20 6f 66 20 66 |nd goodn|ess of f|
|00000ac0| 69 74 2e 20 54 68 65 20 | 2a 2e 70 6c 6f 74 20 66 |it. The |*.plot f|
|00000ad0| 69 6c 65 20 69 73 20 69 | 6e 20 74 65 78 74 20 66 |ile is i|n text f|
|00000ae0| 6f 72 6d 61 74 20 61 6e | 64 0d 69 73 20 73 75 69 |ormat an|d.is sui|
|00000af0| 74 61 62 6c 65 20 66 6f | 72 20 70 6c 6f 74 74 69 |table fo|r plotti|
|00000b00| 6e 67 20 28 65 2e 67 2e | 20 62 79 20 43 72 69 63 |ng (e.g.| by Cric|
|00000b10| 6b 65 74 47 72 61 70 68 | 29 20 6f 66 20 74 68 65 |ketGraph|) of the|
|00000b20| 20 70 73 79 63 68 6f 6d | 65 74 72 69 63 20 64 61 | psychom|etric da|
|00000b30| 74 61 20 61 6c 6f 6e 67 | 0d 77 69 74 68 20 74 68 |ta along|.with th|
|00000b40| 65 20 57 65 69 62 75 6c | 6c 20 61 6e 64 20 4d 6f |e Weibul|l and Mo|
|00000b50| 6e 6f 74 6f 6e 69 63 20 | 66 69 74 73 2e 20 46 6f |notonic |fits. Fo|
|00000b60| 72 20 4d 61 63 69 6e 74 | 6f 73 68 20 75 73 65 72 |r Macint|osh user|
|00000b70| 73 2c 20 74 68 65 20 6f | 75 74 70 75 74 20 66 69 |s, the o|utput fi|
|00000b80| 6c 65 73 20 61 72 65 0d | 54 45 58 54 20 66 69 6c |les are.|TEXT fil|
|00000b90| 65 73 2c 20 62 75 74 20 | 68 61 76 65 20 74 68 65 |es, but |have the|
|00000ba0| 20 61 70 70 72 6f 70 72 | 69 61 74 65 20 63 72 65 | appropr|iate cre|
|00000bb0| 61 74 6f 72 20 73 6f 20 | 74 68 61 74 20 64 6f 75 |ator so |that dou|
|00000bc0| 62 6c 65 2d 63 6c 69 63 | 6b 69 6e 67 20 74 68 65 |ble-clic|king the|
|00000bd0| 6d 20 6f 70 65 6e 73 0d | 74 68 65 20 64 61 74 61 |m opens.|the data|
|00000be0| 20 66 69 6c 65 20 69 6e | 20 74 68 65 20 61 70 70 | file in| the app|
|00000bf0| 72 6f 70 72 69 61 74 65 | 20 61 70 70 6c 69 63 61 |ropriate| applica|
|00000c00| 74 69 6f 6e 2c 20 65 69 | 74 68 65 72 20 45 78 63 |tion, ei|ther Exc|
|00000c10| 65 6c 20 6f 72 20 43 72 | 69 63 6b 65 74 20 47 72 |el or Cr|icket Gr|
|00000c20| 61 70 68 2e 0d 46 6f 72 | 20 6d 61 78 69 6d 75 6d |aph..For| maximum|
|00000c30| 20 63 6f 6e 76 65 6e 69 | 65 6e 63 65 2c 20 63 68 | conveni|ence, ch|
|00000c40| 61 6e 67 65 20 74 68 65 | 20 64 65 66 69 6e 69 74 |ange the| definit|
|00000c50| 69 6f 6e 20 6f 66 20 50 | 4c 4f 54 5f 43 52 45 41 |ion of P|LOT_CREA|
|00000c60| 54 4f 52 20 74 6f 20 6d | 61 74 63 68 20 74 68 61 |TOR to m|atch tha|
|00000c70| 74 20 6f 66 20 0d 79 6f | 75 72 20 66 61 76 6f 72 |t of .yo|ur favor|
|00000c80| 69 74 65 20 67 72 61 70 | 68 69 6e 67 20 70 72 6f |ite grap|hing pro|
|00000c90| 67 72 61 6d 2e 0d 0d 57 | 65 20 6e 6f 20 6c 6f 6e |gram...W|e no lon|
|00000ca0| 67 65 72 20 75 73 65 20 | 43 72 69 63 6b 65 74 47 |ger use |CricketG|
|00000cb0| 72 61 70 68 2c 20 62 75 | 74 2c 20 69 6e 20 63 61 |raph, bu|t, in ca|
|00000cc0| 73 65 20 79 6f 75 20 64 | 6f 2c 20 77 65 27 76 65 |se you d|o, we've|
|00000cd0| 20 69 6e 63 6c 75 64 65 | 64 20 43 72 69 63 6b 65 | include|d Cricke|
|00000ce0| 74 47 72 61 70 68 0d 66 | 6f 72 6d 61 74 20 66 69 |tGraph.f|ormat fi|
|00000cf0| 6c 65 73 20 63 61 6c 6c | 65 64 20 22 43 72 69 63 |les call|ed "Cric|
|00000d00| 6b 65 74 47 72 61 70 68 | 20 51 75 69 63 6b 33 22 |ketGraph| Quick3"|
|00000d10| 20 28 66 6f 72 20 74 68 | 65 20 6f 72 69 67 69 6e | (for th|e origin|
|00000d20| 61 6c 20 43 72 69 63 6b | 65 74 47 72 61 70 68 29 |al Crick|etGraph)|
|00000d30| 20 61 6e 64 0d 22 43 41 | 2d 43 72 69 63 6b 65 74 | and."CA|-Cricket|
|00000d40| 47 72 61 70 68 49 49 49 | 20 51 75 69 63 6b 33 22 |GraphIII| Quick3"|
|00000d50| 20 28 66 6f 72 20 74 68 | 65 20 6e 65 77 20 43 72 | (for th|e new Cr|
|00000d60| 69 63 6b 65 74 47 72 61 | 70 68 49 49 49 29 2e 20 |icketGra|phIII). |
|00000d70| 50 75 74 20 74 68 65 20 | 61 70 70 72 6f 70 72 69 |Put the |appropri|
|00000d80| 61 74 65 0d 66 69 6c 65 | 20 69 6e 20 74 68 65 20 |ate.file| in the |
|00000d90| 73 61 6d 65 20 66 6f 6c | 64 65 72 20 61 73 20 74 |same fol|der as t|
|00000da0| 68 65 20 43 72 69 63 6b | 65 74 47 72 61 70 68 20 |he Crick|etGraph |
|00000db0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 2e 20 57 68 65 |applicat|ion. Whe|
|00000dc0| 6e 20 43 72 69 63 6b 65 | 74 47 72 61 70 68 0d 73 |n Cricke|tGraph.s|
|00000dd0| 74 61 72 74 73 20 75 70 | 20 69 74 20 77 69 6c 6c |tarts up| it will|
|00000de0| 20 72 65 61 64 20 69 6e | 20 74 68 65 20 66 6f 72 | read in| the for|
|00000df0| 6d 61 74 20 66 69 6c 65 | 2c 20 61 6e 64 20 6c 61 |mat file|, and la|
|00000e00| 74 65 72 20 79 6f 75 27 | 6c 6c 20 62 65 20 61 62 |ter you'|ll be ab|
|00000e10| 6c 65 20 74 6f 20 73 65 | 6c 65 63 74 0d 74 68 61 |le to se|lect.tha|
|00000e20| 74 20 66 6f 72 6d 61 74 | 20 66 72 6f 6d 20 43 72 |t format| from Cr|
|00000e30| 69 63 6b 65 74 47 72 61 | 70 68 27 73 20 46 6f 72 |icketGra|ph's For|
|00000e40| 6d 61 74 20 6d 65 6e 75 | 20 77 68 65 6e 20 79 6f |mat menu| when yo|
|00000e50| 75 20 70 6c 6f 74 20 79 | 6f 75 72 20 64 61 74 61 |u plot y|our data|
|00000e60| 2e 0d 0d 51 75 69 63 6b | 33 27 73 20 69 6e 70 75 |...Quick|3's inpu|
|00000e70| 74 20 66 69 6c 65 20 66 | 6f 72 6d 61 74 20 69 73 |t file f|ormat is|
|00000e80| 20 73 69 6d 70 6c 65 20 | 61 6e 64 20 66 6c 65 78 | simple |and flex|
|00000e90| 69 62 6c 65 2e 20 49 74 | 20 69 73 20 61 20 74 65 |ible. It| is a te|
|00000ea0| 78 74 20 66 69 6c 65 2e | 20 4c 69 6e 65 73 0d 62 |xt file.| Lines.b|
|00000eb0| 65 67 69 6e 6e 69 6e 67 | 20 77 69 74 68 20 22 23 |eginning| with "#|
|00000ec0| 22 20 61 72 65 20 74 72 | 65 61 74 65 64 20 61 73 |" are tr|eated as|
|00000ed0| 20 63 6f 6d 6d 65 6e 74 | 73 2e 20 43 6f 6d 6d 65 | comment|s. Comme|
|00000ee0| 6e 74 73 20 61 72 65 20 | 65 69 74 68 65 72 20 63 |nts are |either c|
|00000ef0| 6f 70 69 65 64 20 64 69 | 72 65 63 74 6c 79 0d 74 |opied di|rectly.t|
|00000f00| 6f 20 74 68 65 20 2e 66 | 69 74 20 66 69 6c 65 2c |o the .f|it file,|
|00000f10| 20 6f 72 20 75 73 65 64 | 20 61 73 20 61 20 6e 61 | or used| as a na|
|00000f20| 6d 65 20 66 6f 72 20 74 | 68 65 20 6e 65 78 74 20 |me for t|he next |
|00000f30| 22 63 6f 6e 64 69 74 69 | 6f 6e 22 20 28 69 2e 65 |"conditi|on" (i.e|
|00000f40| 2e 20 62 6c 6f 63 6b 20 | 6f 66 0d 64 61 74 61 29 |. block |of.data)|
|00000f50| 2e 20 54 68 65 20 66 69 | 6c 65 20 6d 75 73 74 20 |. The fi|le must |
|00000f60| 62 65 67 69 6e 20 77 69 | 74 68 20 61 74 20 6c 65 |begin wi|th at le|
|00000f70| 61 73 74 20 6f 6e 65 20 | 63 6f 6d 6d 65 6e 74 20 |ast one |comment |
|00000f80| 6c 69 6e 65 2e 20 54 68 | 65 20 6c 61 73 74 20 6f |line. Th|e last o|
|00000f90| 66 20 73 65 76 65 72 61 | 6c 0d 63 6f 6e 74 69 67 |f severa|l.contig|
|00000fa0| 75 6f 75 73 20 63 6f 6d | 6d 65 6e 74 20 6c 69 6e |uous com|ment lin|
|00000fb0| 65 73 20 77 69 6c 6c 20 | 62 65 20 74 61 6b 65 6e |es will |be taken|
|00000fc0| 20 74 6f 20 62 65 20 74 | 68 65 20 6e 61 6d 65 20 | to be t|he name |
|00000fd0| 66 6f 72 20 74 68 65 20 | 66 6f 6c 6c 6f 77 69 6e |for the |followin|
|00000fe0| 67 0d 63 6f 6e 64 69 74 | 69 6f 6e 2e 20 41 6c 6c |g.condit|ion. All|
|00000ff0| 20 74 68 65 20 6e 6f 6e | 2d 63 6f 6d 6d 65 6e 74 | the non|-comment|
|00001000| 20 6c 69 6e 65 73 20 75 | 6e 74 69 6c 20 74 68 65 | lines u|ntil the|
|00001010| 20 6e 65 78 74 20 63 6f | 6d 6d 65 6e 74 20 77 69 | next co|mment wi|
|00001020| 6c 6c 20 62 65 20 69 6e | 74 65 72 70 72 65 74 65 |ll be in|terprete|
|00001030| 64 0d 61 73 20 74 68 65 | 20 64 61 74 61 20 66 6f |d.as the| data fo|
|00001040| 72 20 74 68 61 74 20 63 | 6f 6e 64 69 74 69 6f 6e |r that c|ondition|
|00001050| 2e 0d 0d 41 6e 20 65 78 | 70 65 72 69 6d 65 6e 74 |...An ex|periment|
|00001060| 20 75 73 75 61 6c 6c 79 | 20 63 6f 6e 73 69 73 74 | usually| consist|
|00001070| 73 20 6f 66 20 73 65 76 | 65 72 61 6c 20 63 6f 6e |s of sev|eral con|
|00001080| 64 69 74 69 6f 6e 73 2c | 20 6f 72 20 62 6c 6f 63 |ditions,| or bloc|
|00001090| 6b 73 20 6f 66 20 74 72 | 69 61 6c 73 2e 0d 57 69 |ks of tr|ials..Wi|
|000010a0| 74 68 69 6e 20 74 68 65 | 20 63 6f 6e 64 69 74 69 |thin the| conditi|
|000010b0| 6f 6e 20 74 68 65 20 6f | 62 73 65 72 76 65 72 20 |on the o|bserver |
|000010c0| 77 69 6c 6c 20 62 65 20 | 74 65 73 74 65 64 20 72 |will be |tested r|
|000010d0| 65 70 65 61 74 65 64 6c | 79 20 61 74 20 76 61 72 |epeatedl|y at var|
|000010e0| 69 6f 75 73 0d 63 6f 6e | 74 72 61 73 74 73 2e 20 |ious.con|trasts. |
|000010f0| 54 68 65 20 72 65 73 75 | 6c 74 73 20 63 6f 6e 73 |The resu|lts cons|
|00001100| 69 73 74 20 6f 66 20 74 | 68 65 20 6e 75 6d 62 65 |ist of t|he numbe|
|00001110| 72 20 6f 66 20 74 72 69 | 61 6c 73 20 63 6f 72 72 |r of tri|als corr|
|00001120| 65 63 74 20 61 74 20 65 | 61 63 68 20 63 6f 6e 74 |ect at e|ach cont|
|00001130| 72 61 73 74 2e 0d 54 68 | 65 20 72 65 73 75 6c 74 |rast..Th|e result|
|00001140| 73 20 6d 61 79 20 62 65 | 20 64 65 73 63 72 69 62 |s may be| describ|
|00001150| 65 64 20 62 79 20 61 20 | 73 65 74 20 6f 66 20 22 |ed by a |set of "|
|00001160| 63 6f 6e 74 72 61 73 74 | 20 72 65 63 6f 72 64 73 |contrast| records|
|00001170| 22 2e 20 45 61 63 68 20 | 63 6f 6e 74 72 61 73 74 |". Each |contrast|
|00001180| 0d 72 65 63 6f 72 64 20 | 63 6f 6e 73 69 73 74 73 |.record |consists|
|00001190| 20 6f 66 20 61 20 63 6f | 6e 74 72 61 73 74 20 28 | of a co|ntrast (|
|000011a0| 65 2e 67 2e 20 30 2e 30 | 31 32 29 2c 20 74 68 65 |e.g. 0.0|12), the|
|000011b0| 20 6e 75 6d 62 65 72 20 | 6f 66 20 74 72 69 61 6c | number |of trial|
|000011c0| 73 20 61 74 20 74 68 61 | 74 0d 63 6f 6e 74 72 61 |s at tha|t.contra|
|000011d0| 73 74 20 28 65 2e 67 2e | 20 31 20 6f 72 20 31 30 |st (e.g.| 1 or 10|
|000011e0| 30 29 2c 20 61 6e 64 20 | 74 68 65 20 6e 75 6d 62 |0), and |the numb|
|000011f0| 65 72 20 6f 66 20 63 6f | 72 72 65 63 74 20 72 65 |er of co|rrect re|
|00001200| 73 70 6f 6e 73 65 73 20 | 28 65 2e 67 2e 20 30 20 |sponses |(e.g. 0 |
|00001210| 6f 72 20 37 39 29 2e 0d | 51 75 69 63 6b 33 20 65 |or 79)..|Quick3 e|
|00001220| 78 70 65 63 74 73 20 61 | 20 63 6f 6e 74 72 61 73 |xpects a| contras|
|00001230| 74 20 72 65 63 6f 72 64 | 20 74 6f 20 6c 6f 6f 6b |t record| to look|
|00001240| 20 6c 69 6b 65 20 74 68 | 69 73 3a 0d 30 2e 30 31 | like th|is:.0.01|
|00001250| 32 20 31 30 30 20 37 39 | 0d 54 68 65 20 74 68 72 |2 100 79|.The thr|
|00001260| 65 65 20 6e 75 6d 62 65 | 72 73 20 61 72 65 20 61 |ee numbe|rs are a|
|00001270| 6c 6c 20 6f 6e 20 6f 6e | 65 20 6c 69 6e 65 2c 20 |ll on on|e line, |
|00001280| 61 6e 64 20 73 65 70 61 | 72 61 74 65 64 20 62 79 |and sepa|rated by|
|00001290| 20 77 68 69 74 65 20 73 | 70 61 63 65 2c 20 73 6f | white s|pace, so|
|000012a0| 20 73 73 63 61 6e 66 0d | 63 61 6e 20 70 61 72 73 | sscanf.|can pars|
|000012b0| 65 20 74 68 65 6d 2e 20 | 41 6e 79 74 68 69 6e 67 |e them. |Anything|
|000012c0| 20 6f 6e 20 74 68 65 20 | 6c 69 6e 65 20 61 66 74 | on the |line aft|
|000012d0| 65 72 20 74 68 65 20 74 | 68 69 72 64 20 6e 75 6d |er the t|hird num|
|000012e0| 62 65 72 20 69 73 20 69 | 67 6e 6f 72 65 64 2e 20 |ber is i|gnored. |
|000012f0| 41 6c 6c 0d 63 6f 6e 74 | 72 61 73 74 20 72 65 63 |All.cont|rast rec|
|00001300| 6f 72 64 73 20 75 6e 74 | 69 6c 20 74 68 65 20 6e |ords unt|il the n|
|00001310| 65 78 74 20 63 6f 6d 6d | 65 6e 74 20 28 6c 69 6e |ext comm|ent (lin|
|00001320| 65 20 62 65 67 69 6e 6e | 69 6e 67 20 77 69 74 68 |e beginn|ing with|
|00001330| 20 22 23 22 29 20 6f 72 | 20 74 68 65 20 65 6e 64 | "#") or| the end|
|00001340| 20 6f 66 0d 66 69 6c 65 | 20 61 72 65 20 61 73 73 | of.file| are ass|
|00001350| 75 6d 65 64 20 74 6f 20 | 62 65 20 66 72 6f 6d 20 |umed to |be from |
|00001360| 74 68 65 20 73 61 6d 65 | 20 63 6f 6e 64 69 74 69 |the same| conditi|
|00001370| 6f 6e 20 61 6e 64 20 61 | 72 65 20 61 6e 61 6c 79 |on and a|re analy|
|00001380| 7a 65 64 20 74 6f 67 65 | 74 68 65 72 2e 20 54 68 |zed toge|ther. Th|
|00001390| 65 0d 63 6f 6e 74 72 61 | 73 74 20 72 65 63 6f 72 |e.contra|st recor|
|000013a0| 64 73 20 6d 61 79 20 62 | 65 20 69 6e 20 61 6e 79 |ds may b|e in any|
|000013b0| 20 6f 72 64 65 72 2e 20 | 54 68 65 20 72 65 63 6f | order. |The reco|
|000013c0| 72 64 73 20 77 69 6c 6c | 20 62 65 20 73 6f 72 74 |rds will| be sort|
|000013d0| 65 64 20 69 6e 74 6f 20 | 6f 72 64 65 72 20 6f 66 |ed into |order of|
|000013e0| 0d 61 73 63 65 6e 64 69 | 6e 67 20 63 6f 6e 74 72 |.ascendi|ng contr|
|000013f0| 61 73 74 2e 20 59 6f 75 | 20 6d 61 79 20 68 61 76 |ast. You| may hav|
|00001400| 65 20 61 6e 79 20 6e 75 | 6d 62 65 72 20 6f 66 20 |e any nu|mber of |
|00001410| 74 72 69 61 6c 73 20 61 | 74 20 65 61 63 68 20 63 |trials a|t each c|
|00001420| 6f 6e 74 72 61 73 74 2c | 20 75 70 20 74 6f 0d 61 |ontrast,| up to.a|
|00001430| 62 6f 75 74 20 74 77 6f | 20 62 69 6c 6c 69 6f 6e |bout two| billion|
|00001440| 20 28 69 2e 65 2e 20 4c | 4f 4e 47 5f 4d 41 58 20 | (i.e. L|ONG_MAX |
|00001450| 69 6e 20 6c 69 6d 69 74 | 73 2e 68 29 2e 20 49 74 |in limit|s.h). It|
|00001460| 27 73 20 6f 6b 61 79 20 | 74 6f 20 68 61 76 65 20 |'s okay |to have |
|00001470| 6d 75 6c 74 69 70 6c 65 | 0d 72 65 63 6f 72 64 73 |multiple|.records|
|00001480| 20 77 69 74 68 20 65 71 | 75 61 6c 20 63 6f 6e 74 | with eq|ual cont|
|00001490| 72 61 73 74 73 2e 20 54 | 68 65 20 64 61 74 61 20 |rasts. T|he data |
|000014a0| 77 69 6c 6c 20 62 65 20 | 6d 65 72 67 65 64 2c 20 |will be |merged, |
|000014b0| 61 64 64 69 6e 67 20 75 | 70 20 74 68 65 20 74 72 |adding u|p the tr|
|000014c0| 69 61 6c 73 20 61 74 0d | 74 68 61 74 20 63 6f 6e |ials at.|that con|
|000014d0| 74 72 61 73 74 2e 20 59 | 6f 75 20 63 61 6e 20 65 |trast. Y|ou can e|
|000014e0| 76 65 6e 20 62 65 20 72 | 65 61 6c 6c 79 20 6c 61 |ven be r|eally la|
|000014f0| 7a 79 20 61 6e 64 20 6a | 75 73 74 20 77 72 69 74 |zy and j|ust writ|
|00001500| 65 20 6f 75 74 20 65 61 | 63 68 20 74 72 69 61 6c |e out ea|ch trial|
|00001510| 20 61 73 20 61 0d 73 65 | 70 61 72 61 74 65 20 63 | as a.se|parate c|
|00001520| 6f 6e 74 72 61 73 74 20 | 72 65 63 6f 72 64 2c 20 |ontrast |record, |
|00001530| 69 6e 20 77 68 61 74 65 | 76 65 72 20 6f 72 64 65 |in whate|ver orde|
|00001540| 72 2c 20 77 69 74 68 6f | 75 74 20 6b 65 65 70 69 |r, witho|ut keepi|
|00001550| 6e 67 20 74 72 61 63 6b | 20 6f 66 20 68 6f 77 20 |ng track| of how |
|00001560| 6d 61 6e 79 2c 0d 65 74 | 63 2e 0d 0d 59 6f 75 20 |many,.et|c...You |
|00001570| 6d 61 79 20 61 64 64 20 | 72 65 63 6f 72 64 73 20 |may add |records |
|00001580| 77 69 74 68 20 7a 65 72 | 6f 20 74 72 69 61 6c 73 |with zer|o trials|
|00001590| 20 28 61 6e 64 20 7a 65 | 72 6f 20 63 6f 72 72 65 | (and ze|ro corre|
|000015a0| 63 74 29 20 73 6f 20 61 | 73 20 74 6f 20 68 61 76 |ct) so a|s to hav|
|000015b0| 65 20 66 69 74 74 65 64 | 0d 76 61 6c 75 65 73 20 |e fitted|.values |
|000015c0| 63 6f 6d 70 75 74 65 64 | 20 61 74 20 74 68 6f 73 |computed| at thos|
|000015d0| 65 20 63 6f 6e 74 72 61 | 73 74 73 20 69 6e 20 74 |e contra|sts in t|
|000015e0| 68 65 20 2e 70 6c 6f 74 | 20 66 69 6c 65 2e 0d 0d |he .plot| file...|
|000015f0| 48 65 72 65 27 73 20 61 | 6e 20 65 78 61 6d 70 6c |Here's a|n exampl|
|00001600| 65 20 6f 66 20 61 20 64 | 61 74 61 20 66 69 6c 65 |e of a d|ata file|
|00001610| 2c 20 73 75 69 74 61 62 | 6c 65 20 66 6f 72 20 61 |, suitab|le for a|
|00001620| 6e 61 6c 79 73 69 73 20 | 62 79 20 51 75 69 63 6b |nalysis |by Quick|
|00001630| 33 3a 0d 23 54 68 69 73 | 20 69 73 20 61 20 73 61 |3:.#This| is a sa|
|00001640| 6d 70 6c 65 20 66 69 6c | 65 2e 20 0d 23 54 68 65 |mple fil|e. .#The|
|00001650| 20 66 69 72 73 74 20 63 | 6f 6e 64 69 74 69 6f 6e | first c|ondition|
|00001660| 20 69 73 20 63 61 6c 6c | 65 64 20 22 6d 6f 6e 6f | is call|ed "mono|
|00001670| 63 75 6c 61 72 22 20 61 | 6e 64 20 68 61 73 20 36 |cular" a|nd has 6|
|00001680| 30 20 74 72 69 61 6c 73 | 20 61 74 20 36 20 63 6f |0 trials| at 6 co|
|00001690| 6e 74 72 61 73 74 73 2e | 0d 23 6d 6f 6e 6f 63 75 |ntrasts.|.#monocu|
|000016a0| 6c 61 72 0d 30 2e 31 20 | 31 30 20 34 0d 30 2e 32 |lar.0.1 |10 4.0.2|
|000016b0| 20 31 30 20 35 0d 30 2e | 33 20 31 30 20 37 0d 30 | 10 5.0.|3 10 7.0|
|000016c0| 2e 34 20 31 30 20 36 20 | 41 6e 79 74 68 69 6e 67 |.4 10 6 |Anything|
|000016d0| 20 61 66 74 65 72 20 74 | 68 65 20 73 70 65 63 69 | after t|he speci|
|000016e0| 66 69 65 64 20 64 61 74 | 61 20 69 73 20 69 67 6e |fied dat|a is ign|
|000016f0| 6f 72 65 64 2e 0d 30 2e | 35 20 31 30 20 38 0d 30 |ored..0.|5 10 8.0|
|00001700| 2e 36 20 31 30 20 31 30 | 0d 23 20 54 68 65 20 22 |.6 10 10|.# The "|
|00001710| 62 69 6e 6f 63 75 6c 61 | 72 22 20 63 6f 6e 64 69 |binocula|r" condi|
|00001720| 74 69 6f 6e 20 69 73 20 | 62 69 67 67 65 72 3a 20 |tion is |bigger: |
|00001730| 31 30 30 30 20 74 72 69 | 61 6c 73 2e 0d 23 62 69 |1000 tri|als..#bi|
|00001740| 6e 6f 63 75 6c 61 72 0d | 20 30 2e 30 35 36 20 20 |nocular.| 0.056 |
|00001750| 20 20 20 31 30 30 20 20 | 20 20 35 33 0d 20 30 2e | 100 | 53. 0.|
|00001760| 30 36 34 20 20 20 20 20 | 31 30 30 20 20 20 20 35 |064 |100 5|
|00001770| 33 0d 20 30 2e 30 37 33 | 20 20 20 20 20 31 30 30 |3. 0.073| 100|
|00001780| 20 20 20 20 36 35 0d 20 | 30 2e 30 38 33 20 20 20 | 65. |0.083 |
|00001790| 20 20 31 30 30 20 20 20 | 20 37 37 0d 20 30 2e 30 | 100 | 77. 0.0|
|000017a0| 39 34 20 20 20 20 20 31 | 30 30 20 20 20 20 38 31 |94 1|00 81|
|000017b0| 0d 20 30 2e 31 30 37 20 | 20 20 20 20 31 30 30 20 |. 0.107 | 100 |
|000017c0| 20 20 20 38 34 0d 20 30 | 2e 31 32 31 20 20 20 20 | 84. 0|.121 |
|000017d0| 20 31 30 30 20 20 20 20 | 39 36 0d 20 30 2e 31 33 | 100 |96. 0.13|
|000017e0| 38 20 20 20 20 20 31 30 | 30 20 20 20 20 39 39 0d |8 10|0 99.|
|000017f0| 20 30 2e 31 35 36 20 20 | 20 20 20 31 30 30 20 20 | 0.156 | 100 |
|00001800| 20 31 30 30 0d 20 30 2e | 31 37 38 20 20 20 20 20 | 100. 0.|178 |
|00001810| 31 30 30 20 20 20 31 30 | 30 0d 23 61 6c 6c 20 64 |100 10|0.#all d|
|00001820| 6f 6e 65 0d 0d 48 65 72 | 65 27 73 20 74 68 65 20 |one..Her|e's the |
|00001830| 72 65 73 75 6c 74 69 6e | 67 20 2e 66 69 74 20 66 |resultin|g .fit f|
|00001840| 69 6c 65 20 28 74 61 62 | 73 20 77 69 6c 6c 20 73 |ile (tab|s will s|
|00001850| 70 61 63 65 20 70 72 6f | 70 65 72 6c 79 20 69 6e |pace pro|perly in|
|00001860| 20 45 78 63 65 6c 2c 20 | 62 75 74 20 6e 6f 74 20 | Excel, |but not |
|00001870| 68 65 72 65 29 3a 0d 43 | 6f 6e 64 69 74 69 6f 6e |here):.C|ondition|
|00001880| 09 6c 6f 67 41 6c 70 68 | 61 09 62 65 74 61 09 67 |.logAlph|a.beta.g|
|00001890| 61 6d 6d 61 09 64 65 6c | 74 61 09 66 72 65 65 20 |amma.del|ta.free |
|000018a0| 70 61 72 61 6d 73 09 73 | 69 67 6e 69 66 2e 09 43 |params.s|ignif..C|
|000018b0| 68 69 20 73 71 2e 09 64 | 2e 66 2e 09 74 72 69 61 |hi sq..d|.f..tria|
|000018c0| 6c 73 09 63 6f 6e 74 72 | 61 73 74 73 0d 23 54 68 |ls.contr|asts.#Th|
|000018d0| 69 73 20 69 73 20 61 20 | 73 61 6d 70 6c 65 20 66 |is is a |sample f|
|000018e0| 69 6c 65 2e 20 0d 23 54 | 68 65 20 66 69 72 73 74 |ile. .#T|he first|
|000018f0| 20 63 6f 6e 64 69 74 69 | 6f 6e 20 69 73 20 63 61 | conditi|on is ca|
|00001900| 6c 6c 65 64 20 22 6d 6f | 6e 6f 63 75 6c 61 72 22 |lled "mo|nocular"|
|00001910| 20 61 6e 64 20 63 6f 6e | 74 61 69 6e 73 20 36 30 | and con|tains 60|
|00001920| 20 74 72 69 61 6c 73 20 | 61 74 20 36 20 63 6f 6e | trials |at 6 con|
|00001930| 74 72 61 73 74 73 2e 0d | 6d 6f 6e 6f 63 75 6c 61 |trasts..|monocula|
|00001940| 72 09 2d 30 2e 33 30 35 | 09 38 2e 32 36 39 09 30 |r.-0.305|.8.269.0|
|00001950| 2e 35 32 34 09 30 09 34 | 09 30 2e 31 38 33 09 31 |.524.0.4|.0.183.1|
|00001960| 2e 37 37 33 09 31 09 36 | 30 09 36 0d 23 20 54 68 |.773.1.6|0.6.# Th|
|00001970| 65 20 22 62 69 6e 6f 63 | 75 6c 61 72 22 20 63 6f |e "binoc|ular" co|
|00001980| 6e 64 69 74 69 6f 6e 20 | 69 73 20 62 69 67 67 65 |ndition |is bigge|
|00001990| 72 3a 20 31 30 30 30 20 | 74 72 69 61 6c 73 2e 0d |r: 1000 |trials..|
|000019a0| 62 69 6e 6f 63 75 6c 61 | 72 09 2d 31 2e 30 31 35 |binocula|r.-1.015|
|000019b0| 09 33 2e 38 31 31 09 30 | 2e 34 38 32 09 30 09 34 |.3.811.0|.482.0.4|
|000019c0| 09 30 2e 34 37 39 09 35 | 2e 35 32 31 09 36 09 31 |.0.479.5|.521.6.1|
|000019d0| 30 30 30 09 31 30 0d 23 | 61 6c 6c 20 64 6f 6e 65 |000.10.#|all done|
|000019e0| 09 09 09 09 09 09 09 09 | 09 09 0d 0d 53 4f 55 52 |........|....SOUR|
|000019f0| 43 45 53 3a 0d 0d 51 75 | 69 63 6b 33 2e 68 0d 4c |CES:..Qu|ick3.h.L|
|00001a00| 6f 67 4c 69 6b 65 6c 69 | 68 6f 6f 64 2e 63 0d 4d |ogLikeli|hood.c.M|
|00001a10| 6f 6e 6f 74 6f 6e 69 63 | 46 69 74 2e 63 0d 50 73 |onotonic|Fit.c.Ps|
|00001a20| 79 63 68 6f 6d 65 74 72 | 69 63 46 69 74 2e 63 0d |ychometr|icFit.c.|
|00001a30| 51 75 69 63 6b 33 2e 63 | 0d 53 6f 72 74 41 6e 64 |Quick3.c|.SortAnd|
|00001a40| 4d 65 72 67 65 43 6f 6e | 74 72 61 73 74 73 2e 63 |MergeCon|trasts.c|
|00001a50| 0d 57 65 69 62 75 6c 6c | 2e 63 0d 23 46 72 6f 6d |.Weibull|.c.#From|
|00001a60| 20 44 65 6e 69 73 20 50 | 65 6c 6c 69 27 73 20 56 | Denis P|elli's V|
|00001a70| 69 64 65 6f 54 6f 6f 6c | 62 6f 78 3a 0d 56 69 64 |ideoTool|box:.Vid|
|00001a80| 65 6f 54 6f 6f 6c 62 6f | 78 2e 68 0d 42 69 6e 6f |eoToolbo|x.h.Bino|
|00001a90| 6d 69 61 6c 2e 63 0d 43 | 68 69 53 71 75 61 72 65 |mial.c.C|hiSquare|
|00001aa0| 2e 63 0d 4e 6f 72 6d 61 | 6c 2e 63 0d 53 65 74 46 |.c.Norma|l.c.SetF|
|00001ab0| 69 6c 65 49 6e 66 6f 2e | 63 09 09 23 20 55 73 65 |ileInfo.|c..# Use|
|00001ac0| 64 20 6f 6e 6c 79 20 6f | 6e 20 74 68 65 20 4d 61 |d only o|n the Ma|
|00001ad0| 63 69 6e 74 6f 73 68 0d | 23 46 72 6f 6d 20 4e 75 |cintosh.|#From Nu|
|00001ae0| 6d 65 72 69 63 61 6c 20 | 52 65 63 69 70 65 73 20 |merical |Recipes |
|00001af0| 69 6e 20 43 3a 0d 6e 72 | 2e 68 0d 4e 52 55 54 49 |in C:.nr|.h.NRUTI|
|00001b00| 4c 2e 68 0d 42 52 45 4e | 54 2e 43 0d 46 31 44 49 |L.h.BREN|T.C.F1DI|
|00001b10| 4d 2e 43 0d 4c 49 4e 4d | 49 4e 2e 43 0d 4d 4e 42 |M.C.LINM|IN.C.MNB|
|00001b20| 52 41 4b 2e 43 0d 4e 52 | 55 54 49 4c 2e 43 0d 50 |RAK.C.NR|UTIL.C.P|
|00001b30| 4f 57 45 4c 4c 2e 43 0d | 0d 48 49 53 54 4f 52 59 |OWELL.C.|.HISTORY|
|00001b40| 3a 0d 34 2f 37 2f 39 30 | 09 09 64 67 70 09 77 72 |:.4/7/90|..dgp.wr|
|00001b50| 6f 74 65 20 69 74 2e 0d | 34 2f 31 30 2f 39 30 09 |ote it..|4/10/90.|
|00001b60| 09 64 67 70 09 63 68 61 | 6e 67 65 64 20 2e 66 69 |.dgp.cha|nged .fi|
|00001b70| 74 20 66 6f 72 6d 61 74 | 20 66 72 6f 6d 20 25 2e |t format| from %.|
|00001b80| 33 66 20 74 6f 20 25 2e | 34 66 2e 20 41 63 63 65 |3f to %.|4f. Acce|
|00001b90| 70 74 20 6f 6e 6c 79 20 | 70 72 69 6e 74 69 6e 67 |pt only |printing|
|00001ba0| 20 63 68 61 72 61 63 74 | 65 72 73 0d 09 09 09 09 | charact|ers.....|
|00001bb0| 69 6e 20 74 68 65 20 63 | 6f 6e 64 69 74 69 6f 6e |in the c|ondition|
|00001bc0| 20 6e 61 6d 65 2c 20 69 | 67 6e 6f 72 69 6e 67 20 | name, i|gnoring |
|00001bd0| 65 76 65 72 79 74 68 69 | 6e 67 20 61 66 74 65 72 |everythi|ng after|
|00001be0| 20 74 68 65 20 66 69 72 | 73 74 20 6e 6f 6e 2d 70 | the fir|st non-p|
|00001bf0| 72 69 6e 74 69 6e 67 0d | 09 09 09 09 63 68 61 72 |rinting.|....char|
|00001c00| 61 63 74 65 72 2e 20 54 | 68 69 73 20 64 65 61 6c |acter. T|his deal|
|00001c10| 73 20 77 69 74 68 20 74 | 68 65 20 66 61 63 74 20 |s with t|he fact |
|00001c20| 74 68 61 74 20 69 66 20 | 61 6e 20 45 78 63 65 6c |that if |an Excel|
|00001c30| 20 66 69 6c 65 20 69 73 | 20 75 73 65 64 20 66 6f | file is| used fo|
|00001c40| 72 0d 09 09 09 09 69 6e | 70 75 74 2c 20 74 68 65 |r.....in|put, the|
|00001c50| 72 65 20 61 72 65 20 6c | 6f 74 73 20 6f 66 20 74 |re are l|ots of t|
|00001c60| 72 61 69 6c 69 6e 67 20 | 74 61 62 73 20 74 68 61 |railing |tabs tha|
|00001c70| 74 20 73 68 6f 75 6c 64 | 20 62 65 20 69 67 6e 6f |t should| be igno|
|00001c80| 72 65 64 2e 20 43 68 65 | 63 6b 65 64 0d 09 09 09 |red. Che|cked....|
|00001c90| 09 74 68 61 74 20 66 69 | 6c 65 73 20 77 65 72 65 |.that fi|les were|
|00001ca0| 20 61 63 74 75 61 6c 6c | 79 20 6f 70 65 6e 20 62 | actuall|y open b|
|00001cb0| 65 66 6f 72 65 20 63 6c | 6f 73 69 6e 67 20 27 65 |efore cl|osing 'e|
|00001cc0| 6d 2e 20 4a 65 65 73 68 | 21 0d 31 30 2f 32 39 2f |m. Jeesh|!.10/29/|
|00001cd0| 39 30 09 64 67 70 09 74 | 69 64 69 65 64 20 75 70 |90.dgp.t|idied up|
|00001ce0| 20 63 6f 6d 6d 65 6e 74 | 73 2e 0d 31 2f 32 30 2f | comment|s..1/20/|
|00001cf0| 39 31 09 09 64 67 70 09 | 75 70 64 61 74 65 64 20 |91..dgp.|updated |
|00001d00| 63 61 6c 6c 73 20 74 6f | 20 42 69 6e 6f 6d 69 61 |calls to| Binomia|
|00001d10| 6c 55 70 70 65 72 42 6f | 75 6e 64 20 26 20 42 69 |lUpperBo|und & Bi|
|00001d20| 6e 6f 6d 69 61 6c 55 70 | 70 65 72 42 6f 75 6e 64 |nomialUp|perBound|
|00001d30| 20 74 6f 0d 09 09 09 09 | 63 6f 6e 66 6f 72 6d 20 | to.....|conform |
|00001d40| 74 6f 20 6e 65 77 20 64 | 65 66 69 6e 69 74 69 6f |to new d|efinitio|
|00001d50| 6e 2e 0d 38 2f 32 34 2f | 39 31 09 09 64 67 70 09 |n..8/24/|91..dgp.|
|00001d60| 4d 61 64 65 20 63 6f 6d | 70 61 74 69 62 6c 65 20 |Made com|patible |
|00001d70| 77 69 74 68 20 54 48 49 | 4e 4b 20 43 20 35 2e 30 |with THI|NK C 5.0|
|00001d80| 2e 0d 31 31 2f 31 37 2f | 39 32 09 64 67 70 20 4e |..11/17/|92.dgp N|
|00001d90| 6f 77 20 53 65 74 56 6f | 6c 28 29 20 61 66 74 65 |ow SetVo|l() afte|
|00001da0| 72 20 63 61 6c 6c 69 6e | 67 20 53 46 47 65 74 46 |r callin|g SFGetF|
|00001db0| 69 6c 65 2c 20 73 6f 20 | 74 68 61 74 20 66 69 6c |ile, so |that fil|
|00001dc0| 65 20 63 61 6e 20 62 65 | 20 69 6e 20 61 6e 79 20 |e can be| in any |
|00001dd0| 66 6f 6c 64 65 72 2c 0d | 09 09 09 09 6e 6f 74 20 |folder,.|....not |
|00001de0| 6a 75 73 74 20 74 68 65 | 20 73 61 6d 65 20 66 6f |just the| same fo|
|00001df0| 6c 64 65 72 20 74 68 61 | 74 20 51 75 69 63 6b 33 |lder tha|t Quick3|
|00001e00| 20 69 73 20 69 6e 2e 0d | 31 2f 31 39 2f 39 33 09 | is in..|1/19/93.|
|00001e10| 09 64 67 70 09 70 75 74 | 20 23 69 66 73 20 61 72 |.dgp.put| #ifs ar|
|00001e20| 6f 75 6e 64 20 74 68 65 | 20 4d 61 63 2d 64 65 70 |ound the| Mac-dep|
|00001e30| 65 6e 64 65 6e 74 20 63 | 6f 64 65 2e 0d 32 2f 32 |endent c|ode..2/2|
|00001e40| 30 2f 39 33 09 09 64 67 | 70 09 61 64 64 65 64 20 |0/93..dg|p.added |
|00001e50| 63 61 6c 6c 20 74 6f 20 | 52 65 71 75 69 72 65 28 |call to |Require(|
|00001e60| 29 2e 0d 38 2f 35 2f 39 | 33 09 09 64 67 70 09 6d |)..8/5/9|3..dgp.m|
|00001e70| 6f 76 65 64 20 63 61 6c | 6c 20 74 6f 20 52 65 71 |oved cal|l to Req|
|00001e80| 75 69 72 65 28 29 20 69 | 6e 74 6f 20 61 20 73 65 |uire() i|nto a se|
|00001e90| 70 61 72 61 74 65 20 6d | 61 69 6e 28 29 2c 20 73 |parate m|ain(), s|
|00001ea0| 69 6e 63 65 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |ince app|lication|
|00001eb0| 0d 09 09 09 09 66 61 69 | 6c 65 64 20 6f 6e 20 4d |.....fai|led on M|
|00001ec0| 61 63 20 50 6c 75 73 20 | 62 65 66 6f 72 65 20 69 |ac Plus |before i|
|00001ed0| 74 20 67 6f 74 20 74 6f | 20 74 68 65 20 63 61 6c |t got to| the cal|
|00001ee0| 6c 20 74 6f 20 52 65 71 | 75 69 72 65 28 29 2e 20 |l to Req|uire(). |
|00001ef0| 54 68 61 6e 6b 73 0d 09 | 09 09 09 74 6f 20 52 6f |Thanks..|...to Ro|
|00001f00| 62 65 72 74 20 46 72 69 | 65 64 6d 61 6e 20 66 72 |bert Fri|edman fr|
|00001f10| 69 65 64 6d 61 6e 40 63 | 6f 72 74 65 78 2e 68 65 |iedman@c|ortex.he|
|00001f20| 61 6c 74 68 2e 75 66 6c | 2e 65 64 75 20 66 6f 72 |alth.ufl|.edu for|
|00001f30| 20 72 65 70 6f 72 74 69 | 6e 67 20 74 68 65 0d 09 | reporti|ng the..|
|00001f40| 09 09 09 70 72 6f 62 6c | 65 6d 2e 0d 31 30 2f 31 |...probl|em..10/1|
|00001f50| 33 2f 39 33 09 64 67 70 | 09 61 64 64 65 64 20 63 |3/93.dgp|.added c|
|00001f60| 6f 6d 6d 65 6e 74 73 20 | 61 62 6f 75 74 20 43 72 |omments |about Cr|
|00001f70| 69 63 6b 65 74 47 72 61 | 70 68 49 49 49 2e 20 41 |icketGra|phIII. A|
|00001f80| 6c 6c 6f 77 20 63 6f 6d | 70 69 6c 65 2d 74 69 6d |llow com|pile-tim|
|00001f90| 65 20 63 68 6f 69 63 65 | 20 6f 66 0d 09 09 09 09 |e choice| of.....|
|00001fa0| 4d 61 63 20 66 69 6c 65 | 27 73 20 63 72 65 61 74 |Mac file|'s creat|
|00001fb0| 6f 72 2e 0d 33 2f 31 33 | 2f 39 34 09 09 64 67 70 |or..3/13|/94..dgp|
|00001fc0| 09 72 65 70 6c 61 63 65 | 64 20 4d 79 46 47 65 74 |.replace|d MyFGet|
|00001fd0| 73 20 62 79 20 73 74 61 | 6e 64 61 72 64 20 66 67 |s by sta|ndard fg|
|00001fe0| 65 74 73 2e 20 45 64 69 | 74 65 64 20 74 68 65 20 |ets. Edi|ted the |
|00001ff0| 63 6f 64 65 20 73 6c 69 | 67 68 74 6c 79 2c 20 6d |code sli|ghtly, m|
|00002000| 61 6b 69 6e 67 0d 09 09 | 09 09 69 74 20 61 20 62 |aking...|..it a b|
|00002010| 69 74 20 6d 6f 72 65 20 | 72 65 73 69 6c 69 65 6e |it more |resilien|
|00002020| 74 20 6f 66 20 65 72 72 | 6f 72 73 20 69 6e 20 64 |t of err|ors in d|
|00002030| 61 74 61 20 66 69 6c 65 | 20 66 6f 72 6d 61 74 2e |ata file| format.|
|00002040| 0d 36 2f 31 35 2f 39 34 | 09 09 64 67 70 09 73 6c |.6/15/94|..dgp.sl|
|00002050| 69 67 68 74 6c 79 20 65 | 6e 68 61 6e 63 65 64 20 |ightly e|nhanced |
|00002060| 74 68 65 20 63 6f 64 65 | 20 74 68 61 74 20 72 65 |the code| that re|
|00002070| 61 64 73 20 74 68 65 20 | 64 61 74 61 20 66 69 6c |ads the |data fil|
|00002080| 65 2c 20 74 6f 20 61 63 | 63 65 70 74 2c 20 65 2e |e, to ac|cept, e.|
|00002090| 67 2e 0d 09 09 09 09 33 | 34 2e 30 2c 20 61 73 20 |g......3|4.0, as |
|000020a0| 61 6e 20 69 6e 74 65 67 | 65 72 2e 20 45 72 69 6b |an integ|er. Erik|
|000020b0| 20 48 65 72 7a 6f 67 20 | 26 20 4b 61 74 65 79 20 | Herzog |& Katey |
|000020c0| 42 75 72 6e 73 20 68 61 | 64 20 67 6f 74 74 65 6e |Burns ha|d gotten|
|000020d0| 20 76 65 72 79 20 63 6f | 6e 66 75 73 65 64 0d 09 | very co|nfused..|
|000020e0| 09 09 09 62 79 20 51 75 | 69 63 6b 33 27 73 20 69 |...by Qu|ick3's i|
|000020f0| 6e 61 62 69 6c 69 74 79 | 20 74 6f 20 72 65 61 64 |nability| to read|
|00002100| 20 61 20 64 61 74 61 20 | 66 69 6c 65 20 70 72 6f | a data |file pro|
|00002110| 64 75 63 65 64 20 62 79 | 20 45 78 63 65 6c 20 74 |duced by| Excel t|
|00002120| 68 61 74 20 6c 6f 6f 6b | 65 64 0d 09 09 09 09 66 |hat look|ed.....f|
|00002130| 69 6e 65 20 62 75 74 20 | 77 61 73 20 72 65 61 64 |ine but |was read|
|00002140| 20 62 79 20 51 75 69 63 | 6b 33 20 61 73 20 6d 6f | by Quic|k3 as mo|
|00002150| 73 74 6c 79 20 7a 65 72 | 6f 2c 20 62 65 63 61 75 |stly zer|o, becau|
|00002160| 73 65 20 69 74 20 63 68 | 6f 6b 65 64 20 6f 6e 20 |se it ch|oked on |
|00002170| 74 68 65 0d 09 09 09 09 | 22 2e 30 22 20 74 68 61 |the.....|".0" tha|
|00002180| 74 20 45 78 63 65 6c 20 | 68 61 64 20 61 64 64 65 |t Excel |had adde|
|00002190| 64 20 74 6f 20 61 6c 6c | 20 74 68 65 20 69 6e 74 |d to all| the int|
|000021a0| 65 67 65 72 73 2e 0d 36 | 2f 31 36 2f 39 34 09 09 |egers..6|/16/94..|
|000021b0| 64 67 70 09 4e 65 69 74 | 68 65 72 20 43 41 2d 43 |dgp.Neit|her CA-C|
|000021c0| 72 69 63 6b 65 74 47 72 | 61 70 68 20 49 49 49 20 |ricketGr|aph III |
|000021d0| 31 2e 35 32 20 28 74 68 | 65 20 63 75 72 72 65 6e |1.52 (th|e curren|
|000021e0| 74 20 76 65 72 73 69 6f | 6e 29 20 6e 6f 72 20 44 |t versio|n) nor D|
|000021f0| 65 6c 74 61 47 72 61 70 | 68 20 33 0d 09 09 09 09 |eltaGrap|h 3.....|
|00002200| 77 69 6c 6c 20 6f 70 65 | 6e 20 61 20 74 65 78 74 |will ope|n a text|
|00002210| 20 66 69 6c 65 2c 20 6f | 66 20 77 68 69 63 68 20 | file, o|f which |
|00002220| 74 68 65 79 20 61 72 65 | 20 74 68 65 20 22 63 72 |they are| the "cr|
|00002230| 65 61 74 6f 72 22 2c 20 | 69 66 20 79 6f 75 20 6a |eator", |if you j|
|00002240| 75 73 74 0d 09 09 09 09 | 64 6f 75 62 6c 65 2d 63 |ust.....|double-c|
|00002250| 6c 69 63 6b 69 6e 67 20 | 74 68 65 20 74 65 78 74 |licking |the text|
|00002260| 20 66 69 6c 65 2e 20 4b | 61 6c 65 69 64 61 67 72 | file. K|aleidagr|
|00002270| 61 70 68 20 64 6f 65 73 | 2e 20 53 6f 20 74 68 65 |aph does|. So the|
|00002280| 20 70 6c 6f 74 20 66 69 | 6c 65 73 0d 09 09 09 09 | plot fi|les.....|
|00002290| 61 72 65 20 73 65 74 20 | 74 6f 20 68 61 76 65 20 |are set |to have |
|000022a0| 4b 61 6c 65 69 64 72 61 | 70 68 20 61 73 20 74 68 |Kaleidra|ph as th|
|000022b0| 65 20 63 72 65 61 74 6f | 72 2e 20 44 6f 75 62 6c |e creato|r. Doubl|
|000022c0| 65 20 63 6c 69 63 6b 69 | 6e 67 20 74 68 65 6d 20 |e clicki|ng them |
|000022d0| 77 69 6c 6c 0d 09 09 09 | 09 6f 70 65 6e 20 74 68 |will....|.open th|
|000022e0| 65 6d 20 61 73 20 64 61 | 74 61 20 73 68 65 65 74 |em as da|ta sheet|
|000022f0| 73 20 69 6e 20 4b 61 6c | 65 69 64 61 67 72 61 70 |s in Kal|eidagrap|
|00002300| 68 2c 20 77 68 65 72 65 | 20 79 6f 75 20 63 61 6e |h, where| you can|
|00002310| 20 67 72 61 70 68 20 74 | 68 65 6d 2e 0d 37 2f 32 | graph t|hem..7/2|
|00002320| 39 2f 39 34 20 64 67 70 | 20 45 6c 69 6d 69 6e 61 |9/94 dgp| Elimina|
|00002330| 74 65 64 20 75 73 65 20 | 6f 66 20 22 23 73 22 20 |ted use |of "#s" |
|00002340| 70 72 69 6e 74 66 20 66 | 6f 72 6d 61 74 2c 20 73 |printf f|ormat, s|
|00002350| 69 6e 63 65 20 69 74 27 | 73 20 6e 6f 74 20 73 75 |ince it'|s not su|
|00002360| 70 70 6f 72 74 65 64 20 | 62 79 0d 09 09 09 09 4d |pported |by.....M|
|00002370| 65 74 72 6f 77 65 72 6b | 73 20 43 6f 64 65 57 61 |etrowerk|s CodeWa|
|00002380| 72 72 69 6f 72 20 43 2e | 0d 39 2f 35 2f 39 34 20 |rrior C.|.9/5/94 |
|00002390| 64 67 70 20 72 65 6d 6f | 76 65 64 20 61 73 73 75 |dgp remo|ved assu|
|000023a0| 6d 70 74 69 6f 6e 20 69 | 6e 20 70 72 69 6e 74 66 |mption i|n printf|
|000023b0| 27 73 20 74 68 61 74 20 | 69 6e 74 3d 3d 73 68 6f |'s that |int==sho|
|000023c0| 72 74 2e 0d 31 31 2f 31 | 2f 39 34 20 64 67 70 20 |rt..11/1|/94 dgp |
|000023d0| 66 69 78 65 64 20 6d 69 | 6e 6f 72 20 62 75 67 20 |fixed mi|nor bug |
|000023e0| 69 6e 20 53 6f 72 74 41 | 6e 64 4d 65 72 67 65 43 |in SortA|ndMergeC|
|000023f0| 6f 6e 74 72 61 73 74 73 | 20 72 65 70 6f 72 74 65 |ontrasts| reporte|
|00002400| 64 20 62 79 20 42 61 72 | 74 20 46 61 72 65 6c 6c |d by Bar|t Farell|
|00002410| 2e 20 49 66 20 74 68 65 | 72 65 0d 09 09 09 09 77 |. If the|re.....w|
|00002420| 65 72 65 20 6d 6f 72 65 | 20 74 68 61 6e 20 32 20 |ere more| than 2 |
|00002430| 69 64 65 6e 74 69 63 61 | 6c 20 63 6f 6e 74 72 61 |identica|l contra|
|00002440| 73 74 73 2c 20 74 68 65 | 20 33 72 64 20 77 6f 75 |sts, the| 3rd wou|
|00002450| 6c 64 20 6e 6f 74 20 62 | 65 20 6d 65 72 67 65 64 |ld not b|e merged|
|00002460| 2e 20 54 68 69 73 20 64 | 69 64 20 6e 6f 74 20 63 |. This d|id not c|
|00002470| 6f 72 72 75 70 74 0d 09 | 09 09 09 61 6e 79 20 64 |orrupt..|...any d|
|00002480| 61 74 61 2c 20 69 74 20 | 6a 75 73 74 20 70 72 6f |ata, it |just pro|
|00002490| 64 75 63 65 64 20 61 20 | 6c 65 73 73 20 63 6f 6d |duced a |less com|
|000024a0| 70 61 63 74 20 70 72 69 | 6e 74 6f 75 74 20 74 68 |pact pri|ntout th|
|000024b0| 61 6e 20 69 74 20 73 68 | 6f 75 6c 64 2e 20 49 74 |an it sh|ould. It|
|000024c0| 20 68 61 64 20 6e 6f 20 | 65 66 66 65 63 74 0d 09 | had no |effect..|
|000024d0| 09 09 09 6f 6e 20 57 65 | 69 62 75 6c 6c 20 66 69 |...on We|ibull fi|
|000024e0| 74 73 20 73 69 6e 63 65 | 20 74 68 65 79 20 65 66 |ts since| they ef|
|000024f0| 66 65 63 74 69 76 65 6c | 79 20 74 72 65 61 74 20 |fectivel|y treat |
|00002500| 65 61 63 68 20 74 72 69 | 61 6c 20 69 6e 64 65 70 |each tri|al indep|
|00002510| 65 6e 64 65 6e 74 6c 79 | 2c 20 62 75 74 20 69 74 |endently|, but it|
|00002520| 20 64 69 64 0d 09 09 09 | 09 61 6c 6c 6f 77 20 61 | did....|.allow a|
|00002530| 6e 20 65 78 74 72 61 20 | 64 65 67 72 65 65 20 6f |n extra |degree o|
|00002540| 66 20 66 72 65 65 64 6f | 6d 20 70 65 72 20 75 6e |f freedo|m per un|
|00002550| 6d 65 72 67 65 64 20 63 | 6f 6e 74 72 61 73 74 20 |merged c|ontrast |
|00002560| 74 6f 20 74 68 65 20 6d | 6f 6e 6f 74 6f 6e 69 63 |to the m|onotonic|
|00002570| 20 66 69 74 2e 0d 09 09 | 09 09 43 68 61 6e 67 65 | fit....|..Change|
|00002580| 64 20 74 68 65 20 22 63 | 6f 6e 74 72 61 73 74 73 |d the "c|ontrasts|
|00002590| 22 20 66 69 65 6c 64 20 | 66 72 6f 6d 20 22 69 6e |" field |from "in|
|000025a0| 74 22 20 74 6f 20 22 6c | 6f 6e 67 22 2e 0d 31 31 |t" to "l|ong"..11|
|000025b0| 2f 31 33 2f 39 35 20 64 | 67 70 20 61 66 74 65 72 |/13/95 d|gp after|
|000025c0| 20 63 6f 72 72 65 73 70 | 6f 6e 64 65 6e 63 65 20 | corresp|ondence |
|000025d0| 77 69 74 68 20 52 68 65 | 61 20 45 73 6b 65 77 2c |with Rhe|a Eskew,|
|000025e0| 20 45 53 4b 45 57 40 6e | 65 75 2e 65 64 75 2c 20 | ESKEW@n|eu.edu, |
|000025f0| 61 64 64 65 64 20 61 20 | 63 61 75 74 69 6f 6e 0d |added a |caution.|
|00002600| 09 09 09 09 61 62 6f 75 | 74 20 73 65 74 74 69 6e |....abou|t settin|
|00002610| 67 20 64 65 6c 74 61 3d | 30 2e 0d 2a 2f 0d 2f 2a |g delta=|0..*/./*|
|00002620| 20 23 64 65 66 69 6e 65 | 20 50 4c 4f 54 5f 43 52 | #define| PLOT_CR|
|00002630| 45 41 54 4f 52 09 27 43 | 47 52 46 27 20 2a 2f 09 |EATOR.'C|GRF' */.|
|00002640| 2f 2a 20 4d 61 63 69 6e | 74 6f 73 68 20 43 72 69 |/* Macin|tosh Cri|
|00002650| 63 6b 65 74 20 47 72 61 | 70 68 20 54 45 58 54 20 |cket Gra|ph TEXT |
|00002660| 66 69 6c 65 20 2a 2f 0d | 2f 2a 20 23 64 65 66 69 |file */.|/* #defi|
|00002670| 6e 65 20 50 4c 4f 54 5f | 43 52 45 41 54 4f 52 09 |ne PLOT_|CREATOR.|
|00002680| 27 43 52 47 52 27 09 2a | 2f 09 2f 2a 20 4d 61 63 |'CRGR'.*|/./* Mac|
|00002690| 69 6e 74 6f 73 68 20 43 | 41 2d 43 72 69 63 6b 65 |intosh C|A-Cricke|
|000026a0| 74 20 47 72 61 70 68 20 | 49 49 49 20 54 45 58 54 |t Graph |III TEXT|
|000026b0| 20 66 69 6c 65 20 2a 2f | 0d 23 64 65 66 69 6e 65 | file */|.#define|
|000026c0| 20 50 4c 4f 54 5f 43 52 | 45 41 54 4f 52 09 27 51 | PLOT_CR|EATOR.'Q|
|000026d0| 4b 50 54 27 09 2f 2a 20 | 4d 61 63 69 6e 74 6f 73 |KPT'./* |Macintos|
|000026e0| 68 20 4b 61 6c 65 69 64 | 61 67 72 61 70 68 20 54 |h Kaleid|agraph T|
|000026f0| 45 58 54 20 66 69 6c 65 | 20 2a 2f 0d 23 69 6e 63 |EXT file| */.#inc|
|00002700| 6c 75 64 65 20 22 56 69 | 64 65 6f 54 6f 6f 6c 62 |lude "Vi|deoToolb|
|00002710| 6f 78 2e 68 22 0d 23 69 | 6e 63 6c 75 64 65 20 22 |ox.h".#i|nclude "|
|00002720| 51 75 69 63 6b 33 2e 68 | 22 0d 23 69 6e 63 6c 75 |Quick3.h|".#inclu|
|00002730| 64 65 20 22 6e 72 2e 68 | 22 09 09 09 09 2f 2a 20 |de "nr.h|"..../* |
|00002740| 4e 75 6d 65 72 69 63 61 | 6c 20 52 65 63 69 70 65 |Numerica|l Recipe|
|00002750| 73 20 69 6e 20 43 2a 2f | 0d 23 69 66 20 4d 41 43 |s in C*/|.#if MAC|
|00002760| 5f 43 0d 09 23 69 66 6e | 64 65 66 20 5f 5f 51 55 |_C..#ifn|def __QU|
|00002770| 49 43 4b 44 52 41 57 5f | 5f 0d 09 09 23 69 6e 63 |ICKDRAW_|_...#inc|
|00002780| 6c 75 64 65 20 3c 51 75 | 69 63 6b 44 72 61 77 2e |lude <Qu|ickDraw.|
|00002790| 68 3e 0d 09 23 65 6e 64 | 69 66 0d 09 23 69 66 6e |h>..#end|if..#ifn|
|000027a0| 64 65 66 20 5f 5f 53 54 | 41 4e 44 41 52 44 46 49 |def __ST|ANDARDFI|
|000027b0| 4c 45 5f 5f 0d 09 09 23 | 69 6e 63 6c 75 64 65 20 |LE__...#|include |
|000027c0| 3c 53 74 61 6e 64 61 72 | 64 46 69 6c 65 2e 68 3e |<Standar|dFile.h>|
|000027d0| 0d 09 23 65 6e 64 69 66 | 0d 23 65 6e 64 69 66 0d |..#endif|.#endif.|
|000027e0| 76 6f 69 64 20 51 75 69 | 63 6b 33 28 76 6f 69 64 |void Qui|ck3(void|
|000027f0| 29 3b 0d 0d 76 6f 69 64 | 20 6d 61 69 6e 28 76 6f |);..void| main(vo|
|00002800| 69 64 29 0d 7b 0d 09 23 | 69 66 20 4d 41 43 5f 43 |id).{..#|if MAC_C|
|00002810| 0d 09 09 52 65 71 75 69 | 72 65 28 30 29 3b 09 2f |...Requi|re(0);./|
|00002820| 2a 20 63 68 65 63 6b 20 | 66 6f 72 20 61 6e 79 20 |* check |for any |
|00002830| 72 65 71 75 69 72 65 64 | 20 63 70 75 20 61 6e 64 |required| cpu and|
|00002840| 20 66 70 75 2e 20 2a 2f | 0d 09 23 65 6e 64 69 66 | fpu. */|..#endif|
|00002850| 0d 09 51 75 69 63 6b 33 | 28 29 3b 0d 7d 0d 76 6f |..Quick3|();.}.vo|
|00002860| 69 64 20 51 75 69 63 6b | 33 28 76 6f 69 64 29 0d |id Quick|3(void).|
|00002870| 7b 0d 09 73 74 61 74 69 | 63 20 64 61 74 61 52 65 |{..stati|c dataRe|
|00002880| 63 6f 72 64 20 64 61 74 | 61 2c 6d 6f 6e 6f 74 6f |cord dat|a,monoto|
|00002890| 6e 69 63 44 61 74 61 3b | 0d 09 63 6f 6e 74 72 61 |nicData;|..contra|
|000028a0| 73 74 52 65 63 6f 72 64 | 20 2a 63 50 74 72 3b 0d |stRecord| *cPtr;.|
|000028b0| 09 73 74 61 74 69 63 20 | 70 61 72 61 6d 52 65 63 |.static |paramRec|
|000028c0| 6f 72 64 20 70 61 72 61 | 6d 73 2c 20 69 6e 69 74 |ord para|ms, init|
|000028d0| 50 61 72 61 6d 73 3b 0d | 09 64 6f 75 62 6c 65 20 |Params;.|.double |
|000028e0| 2a 70 61 72 61 6d 50 74 | 72 3d 26 70 61 72 61 6d |*paramPt|r=&param|
|000028f0| 73 2e 6c 6f 67 41 6c 70 | 68 61 3b 09 2f 2a 20 61 |s.logAlp|ha;./* a|
|00002900| 20 67 65 6e 65 72 69 63 | 20 77 61 79 20 6f 66 20 | generic| way of |
|00002910| 61 63 63 65 73 73 69 6e | 67 20 74 68 65 20 70 61 |accessin|g the pa|
|00002920| 72 61 6d 65 74 65 72 73 | 20 2a 2f 0d 09 6c 6f 6e |rameters| */..lon|
|00002930| 67 20 69 3b 0d 09 64 6f | 75 62 6c 65 20 63 68 69 |g i;..do|uble chi|
|00002940| 53 71 75 61 72 65 2c 6d | 6f 64 65 6c 4c 4c 2c 6d |Square,m|odelLL,m|
|00002950| 6f 6e 6f 74 6f 6e 69 63 | 4c 4c 3b 09 2f 2a 20 6c |onotonic|LL;./* l|
|00002960| 6f 67 20 6c 69 6b 65 6c | 69 68 6f 6f 64 20 2a 2f |og likel|ihood */|
|00002970| 0d 09 69 6e 74 20 63 68 | 69 53 71 75 61 72 65 44 |..int ch|iSquareD|
|00002980| 46 2c 6d 6f 64 65 6c 44 | 46 2c 6d 6f 6e 6f 74 6f |F,modelD|F,monoto|
|00002990| 6e 69 63 44 46 3b 09 2f | 2a 20 64 65 67 72 65 65 |nicDF;./|* degree|
|000029a0| 73 20 6f 66 20 66 72 65 | 65 64 6f 6d 20 2a 2f 0d |s of fre|edom */.|
|000029b0| 09 64 6f 75 62 6c 65 20 | 73 69 67 6e 69 66 69 63 |.double |signific|
|000029c0| 61 6e 63 65 3b 0d 09 46 | 49 4c 45 20 2a 64 61 74 |ance;..F|ILE *dat|
|000029d0| 61 46 69 6c 65 3d 4e 55 | 4c 4c 2c 2a 66 69 74 46 |aFile=NU|LL,*fitF|
|000029e0| 69 6c 65 3d 4e 55 4c 4c | 2c 2a 70 6c 6f 74 46 69 |ile=NULL|,*plotFi|
|000029f0| 6c 65 3d 4e 55 4c 4c 3b | 0d 09 63 68 61 72 20 64 |le=NULL;|..char d|
|00002a00| 61 74 61 46 69 6c 65 4e | 61 6d 65 5b 35 30 5d 2c |ataFileN|ame[50],|
|00002a10| 66 69 74 46 69 6c 65 4e | 61 6d 65 5b 35 30 5d 2c |fitFileN|ame[50],|
|00002a20| 70 6c 6f 74 46 69 6c 65 | 4e 61 6d 65 5b 35 30 5d |plotFile|Name[50]|
|00002a30| 2c 73 74 72 69 6e 67 5b | 31 30 30 5d 2c 2a 73 3b |,string[|100],*s;|
|00002a40| 0d 09 63 68 61 72 20 63 | 6f 6e 64 69 74 69 6f 6e |..char c|ondition|
|00002a50| 4e 61 6d 65 5b 31 30 30 | 5d 3b 0d 09 6c 6f 6e 67 |Name[100|];..long|
|00002a60| 20 74 72 69 61 6c 73 3b | 0d 09 75 6e 73 69 67 6e | trials;|..unsign|
|00002a70| 65 64 20 69 6e 74 20 61 | 3b 0d 09 50 73 79 63 68 |ed int a|;..Psych|
|00002a80| 6f 6d 65 74 72 69 63 46 | 75 6e 63 74 69 6f 6e 50 |ometricF|unctionP|
|00002a90| 74 72 20 4d 6f 64 65 6c | 46 75 6e 63 74 69 6f 6e |tr Model|Function|
|00002aa0| 3d 26 57 65 69 62 75 6c | 6c 3b 09 2f 2a 20 61 20 |=&Weibul|l;./* a |
|00002ab0| 70 73 79 63 68 6f 6d 65 | 74 72 69 63 20 66 75 6e |psychome|tric fun|
|00002ac0| 63 74 69 6f 6e 20 2a 2f | 0d 09 73 74 61 74 69 63 |ction */|..static|
|00002ad0| 20 63 6f 6e 73 74 20 63 | 68 61 72 20 6d 6f 64 65 | const c|har mode|
|00002ae0| 6c 4e 61 6d 65 5b 5d 3d | 22 57 65 69 62 75 6c 6c |lName[]=|"Weibull|
|00002af0| 22 3b 0d 09 73 74 61 74 | 69 63 20 63 6f 6e 73 74 |";..stat|ic const|
|00002b00| 20 63 68 61 72 20 70 61 | 72 61 6d 4e 61 6d 65 5b | char pa|ramName[|
|00002b10| 50 41 52 41 4d 53 5d 5b | 31 36 5d 3d 7b 22 6c 6f |PARAMS][|16]={"lo|
|00002b20| 67 41 6c 70 68 61 22 2c | 22 62 65 74 61 22 2c 22 |gAlpha",|"beta","|
|00002b30| 67 61 6d 6d 61 22 2c 22 | 64 65 6c 74 61 22 7d 3b |gamma","|delta"};|
|00002b40| 0d 09 23 69 66 20 4d 41 | 43 5f 43 0d 09 09 50 6f |..#if MA|C_C...Po|
|00002b50| 69 6e 74 20 77 68 65 72 | 65 3b 0d 09 09 73 74 61 |int wher|e;...sta|
|00002b60| 74 69 63 20 53 46 54 79 | 70 65 4c 69 73 74 20 74 |tic SFTy|peList t|
|00002b70| 79 70 65 4c 69 73 74 3b | 0d 09 09 73 74 61 74 69 |ypeList;|...stati|
|00002b80| 63 20 53 46 52 65 70 6c | 79 20 72 65 70 6c 79 3b |c SFRepl|y reply;|
|00002b90| 0d 09 09 61 73 73 65 72 | 74 28 53 74 61 63 6b 53 |...asser|t(StackS|
|00002ba0| 70 61 63 65 28 29 3e 34 | 30 30 30 29 3b 0d 09 23 |pace()>4|000);..#|
|00002bb0| 65 6e 64 69 66 0d 0d 09 | 23 69 66 20 4d 41 43 5f |endif...|#if MAC_|
|00002bc0| 43 0d 09 09 4d 61 78 69 | 6d 69 7a 65 43 6f 6e 73 |C...Maxi|mizeCons|
|00002bd0| 6f 6c 65 48 65 69 67 68 | 74 28 29 3b 0d 09 23 65 |oleHeigh|t();..#e|
|00002be0| 6e 64 69 66 0d 09 70 72 | 69 6e 74 66 28 22 5c 6e |ndif..pr|intf("\n|
|00002bf0| 22 29 3b 09 2f 2a 20 69 | 6e 69 74 20 51 75 69 63 |");./* i|nit Quic|
|00002c00| 6b 44 72 61 77 20 2a 2f | 0d 0d 09 2f 2a 20 69 6e |kDraw */|.../* in|
|00002c10| 69 74 69 61 6c 20 76 61 | 6c 75 65 73 20 66 6f 72 |itial va|lues for|
|00002c20| 20 74 68 65 20 70 61 72 | 61 6d 65 74 65 72 73 20 | the par|ameters |
|00002c30| 6f 66 20 74 68 65 20 70 | 73 79 63 68 6f 6d 65 74 |of the p|sychomet|
|00002c40| 72 69 63 20 66 75 6e 63 | 74 69 6f 6e 20 2a 2f 0d |ric func|tion */.|
|00002c50| 09 70 61 72 61 6d 73 2e | 6c 6f 67 41 6c 70 68 61 |.params.|logAlpha|
|00002c60| 3d 30 2e 30 3b 0d 09 70 | 61 72 61 6d 73 2e 62 65 |=0.0;..p|arams.be|
|00002c70| 74 61 3d 33 2e 35 3b 0d | 09 70 61 72 61 6d 73 2e |ta=3.5;.|.params.|
|00002c80| 67 61 6d 6d 61 3d 30 2e | 35 3b 0d 09 70 61 72 61 |gamma=0.|5;..para|
|00002c90| 6d 73 2e 64 65 6c 74 61 | 3d 30 2e 30 31 3b 0d 09 |ms.delta|=0.01;..|
|00002ca0| 0d 09 23 69 66 20 4d 41 | 43 5f 43 0d 09 09 77 68 |..#if MA|C_C...wh|
|00002cb0| 65 72 65 2e 68 3d 31 30 | 30 3b 0d 09 09 77 68 65 |ere.h=10|0;...whe|
|00002cc0| 72 65 2e 76 3d 31 30 30 | 3b 0d 09 09 74 79 70 65 |re.v=100|;...type|
|00002cd0| 4c 69 73 74 5b 30 5d 3d | 27 54 45 58 54 27 3b 0d |List[0]=|'TEXT';.|
|00002ce0| 09 09 72 65 70 6c 79 2e | 76 65 72 73 69 6f 6e 3d |..reply.|version=|
|00002cf0| 30 3b 0d 09 09 53 46 47 | 65 74 46 69 6c 65 28 77 |0;...SFG|etFile(w|
|00002d00| 68 65 72 65 2c 22 5c 70 | 22 2c 4e 55 4c 4c 2c 31 |here,"\p|",NULL,1|
|00002d10| 2c 74 79 70 65 4c 69 73 | 74 2c 4e 55 4c 4c 2c 26 |,typeLis|t,NULL,&|
|00002d20| 72 65 70 6c 79 29 3b 0d | 09 09 69 66 28 21 72 65 |reply);.|..if(!re|
|00002d30| 70 6c 79 2e 67 6f 6f 64 | 29 50 72 69 6e 74 66 45 |ply.good|)PrintfE|
|00002d40| 78 69 74 28 22 43 6f 75 | 6c 64 6e 27 74 20 6f 70 |xit("Cou|ldn't op|
|00002d50| 65 6e 20 66 69 6c 65 2e | 5c 6e 22 29 3b 0d 09 09 |en file.|\n");...|
|00002d60| 53 65 74 56 6f 6c 28 4e | 55 4c 4c 2c 72 65 70 6c |SetVol(N|ULL,repl|
|00002d70| 79 2e 76 52 65 66 4e 75 | 6d 29 3b 09 2f 2a 20 6c |y.vRefNu|m);./* l|
|00002d80| 6f 6f 6b 20 69 6e 20 74 | 68 61 74 20 66 6f 6c 64 |ook in t|hat fold|
|00002d90| 65 72 20 2a 2f 0d 09 09 | 73 74 72 63 70 79 28 64 |er */...|strcpy(d|
|00002da0| 61 74 61 46 69 6c 65 4e | 61 6d 65 2c 70 32 63 73 |ataFileN|ame,p2cs|
|00002db0| 74 72 28 72 65 70 6c 79 | 2e 66 4e 61 6d 65 29 29 |tr(reply|.fName))|
|00002dc0| 3b 0d 09 23 65 6c 73 65 | 0d 09 09 70 72 69 6e 74 |;..#else|...print|
|00002dd0| 66 28 22 44 61 74 61 20 | 66 69 6c 65 20 6e 61 6d |f("Data |file nam|
|00002de0| 65 3f 5c 6e 22 29 3b 0d | 09 09 67 65 74 73 28 64 |e?\n");.|..gets(d|
|00002df0| 61 74 61 46 69 6c 65 4e | 61 6d 65 29 3b 0d 09 23 |ataFileN|ame);..#|
|00002e00| 65 6e 64 69 66 0d 09 64 | 61 74 61 46 69 6c 65 3d |endif..d|ataFile=|
|00002e10| 66 6f 70 65 6e 28 64 61 | 74 61 46 69 6c 65 4e 61 |fopen(da|taFileNa|
|00002e20| 6d 65 2c 22 72 22 29 3b | 0d 09 69 66 28 64 61 74 |me,"r");|..if(dat|
|00002e30| 61 46 69 6c 65 3d 3d 4e | 55 4c 4c 29 0d 09 09 50 |aFile==N|ULL)...P|
|00002e40| 72 69 6e 74 66 45 78 69 | 74 28 22 5c 30 30 37 53 |rintfExi|t("\007S|
|00002e50| 6f 72 72 79 2c 20 63 61 | 6e 27 74 20 66 69 6e 64 |orry, ca|n't find|
|00002e60| 20 66 69 6c 65 20 5c 22 | 25 73 5c 22 2e 5c 30 30 | file \"|%s\".\00|
|00002e70| 37 5c 6e 22 2c 64 61 74 | 61 46 69 6c 65 4e 61 6d |7\n",dat|aFileNam|
|00002e80| 65 29 3b 0d 09 70 72 69 | 6e 74 66 28 22 52 65 61 |e);..pri|ntf("Rea|
|00002e90| 64 69 6e 67 20 5c 22 25 | 73 5c 22 5c 6e 22 2c 64 |ding \"%|s\"\n",d|
|00002ea0| 61 74 61 46 69 6c 65 4e | 61 6d 65 29 3b 0d 09 73 |ataFileN|ame);..s|
|00002eb0| 74 72 63 70 79 28 73 74 | 72 69 6e 67 2c 64 61 74 |trcpy(st|ring,dat|
|00002ec0| 61 46 69 6c 65 4e 61 6d | 65 29 3b 0d 09 69 66 28 |aFileNam|e);..if(|
|00002ed0| 73 74 72 73 74 72 28 73 | 74 72 69 6e 67 2c 22 2e |strstr(s|tring,".|
|00002ee0| 64 61 74 61 22 29 29 73 | 74 72 63 70 79 28 73 74 |data"))s|trcpy(st|
|00002ef0| 72 73 74 72 28 73 74 72 | 69 6e 67 2c 22 2e 64 61 |rstr(str|ing,".da|
|00002f00| 74 61 22 29 2c 22 22 29 | 3b 0d 09 65 6c 73 65 20 |ta"),"")|;..else |
|00002f10| 69 66 28 73 74 72 73 74 | 72 28 73 74 72 69 6e 67 |if(strst|r(string|
|00002f20| 2c 22 2e 79 65 73 22 29 | 29 73 74 72 63 70 79 28 |,".yes")|)strcpy(|
|00002f30| 73 74 72 73 74 72 28 73 | 74 72 69 6e 67 2c 22 2e |strstr(s|tring,".|
|00002f40| 79 65 73 22 29 2c 22 22 | 29 3b 0d 09 69 66 28 73 |yes"),""|);..if(s|
|00002f50| 74 72 6c 65 6e 28 73 74 | 72 69 6e 67 29 3e 30 29 |trlen(st|ring)>0)|
|00002f60| 7b 0d 09 09 73 70 72 69 | 6e 74 66 28 66 69 74 46 |{...spri|ntf(fitF|
|00002f70| 69 6c 65 4e 61 6d 65 2c | 22 25 73 2e 66 69 74 22 |ileName,|"%s.fit"|
|00002f80| 2c 73 74 72 69 6e 67 29 | 3b 0d 09 09 70 72 69 6e |,string)|;...prin|
|00002f90| 74 66 28 22 43 72 65 61 | 74 69 6e 67 20 6f 75 74 |tf("Crea|ting out|
|00002fa0| 70 75 74 20 66 69 6c 65 | 73 3a 5c 6e 25 73 5c 6e |put file|s:\n%s\n|
|00002fb0| 25 73 2e 3c 63 6f 6e 64 | 69 74 69 6f 6e 20 6e 61 |%s.<cond|ition na|
|00002fc0| 6d 65 3e 2e 70 6c 6f 74 | 5c 6e 22 0d 09 09 09 2c |me>.plot|\n"....,|
|00002fd0| 66 69 74 46 69 6c 65 4e | 61 6d 65 2c 73 74 72 69 |fitFileN|ame,stri|
|00002fe0| 6e 67 29 3b 0d 09 09 66 | 69 74 46 69 6c 65 3d 66 |ng);...f|itFile=f|
|00002ff0| 6f 70 65 6e 28 66 69 74 | 46 69 6c 65 4e 61 6d 65 |open(fit|FileName|
|00003000| 2c 22 77 22 29 3b 0d 09 | 09 69 66 28 66 69 74 46 |,"w");..|.if(fitF|
|00003010| 69 6c 65 3d 3d 4e 55 4c | 4c 29 0d 09 09 09 50 72 |ile==NUL|L)....Pr|
|00003020| 69 6e 74 66 45 78 69 74 | 28 22 53 6f 72 72 79 2c |intfExit|("Sorry,|
|00003030| 20 49 20 63 61 6e 27 74 | 20 63 72 65 61 74 65 20 | I can't| create |
|00003040| 66 69 6c 65 20 5c 22 25 | 73 5c 22 2e 5c 30 30 37 |file \"%|s\".\007|
|00003050| 5c 6e 22 2c 66 69 74 46 | 69 6c 65 4e 61 6d 65 29 |\n",fitF|ileName)|
|00003060| 3b 0d 09 09 23 69 66 20 | 4d 41 43 5f 43 0d 09 09 |;...#if |MAC_C...|
|00003070| 09 53 65 74 46 69 6c 65 | 49 6e 66 6f 28 66 69 74 |.SetFile|Info(fit|
|00003080| 46 69 6c 65 4e 61 6d 65 | 2c 27 54 45 58 54 27 2c |FileName|,'TEXT',|
|00003090| 27 58 43 45 4c 27 29 3b | 09 09 2f 2a 20 45 78 63 |'XCEL');|../* Exc|
|000030a0| 65 6c 20 66 69 6c 65 20 | 2a 2f 0d 09 09 23 65 6e |el file |*/...#en|
|000030b0| 64 69 66 0d 09 7d 0d 09 | 6d 6f 64 65 6c 44 46 3d |dif..}..|modelDF=|
|000030c0| 50 41 52 41 4d 53 3b 09 | 2f 2a 20 6e 75 6d 62 65 |PARAMS;.|/* numbe|
|000030d0| 72 20 6f 66 20 70 61 72 | 61 6d 65 74 65 72 73 20 |r of par|ameters |
|000030e0| 74 6f 20 62 65 20 61 64 | 6a 75 73 74 65 64 20 69 |to be ad|justed i|
|000030f0| 6e 20 66 69 74 74 69 6e | 67 20 2a 2f 0d 09 70 72 |n fittin|g */..pr|
|00003100| 69 6e 74 66 28 22 48 6f | 77 20 6d 61 6e 79 20 70 |intf("Ho|w many p|
|00003110| 61 72 61 6d 65 74 65 72 | 73 20 73 68 61 6c 6c 20 |arameter|s shall |
|00003120| 62 65 20 61 64 6a 75 73 | 74 61 62 6c 65 3f 20 30 |be adjus|table? 0|
|00003130| 20 74 6f 20 25 64 20 28 | 25 64 29 3a 22 2c 28 69 | to %d (|%d):",(i|
|00003140| 6e 74 29 50 41 52 41 4d | 53 2c 6d 6f 64 65 6c 44 |nt)PARAM|S,modelD|
|00003150| 46 29 3b 0d 09 67 65 74 | 73 28 73 74 72 69 6e 67 |F);..get|s(string|
|00003160| 29 3b 0d 09 73 73 63 61 | 6e 66 28 73 74 72 69 6e |);..ssca|nf(strin|
|00003170| 67 2c 22 25 64 22 2c 26 | 6d 6f 64 65 6c 44 46 29 |g,"%d",&|modelDF)|
|00003180| 3b 0d 09 66 6f 72 28 69 | 3d 31 3b 69 3c 6d 6f 64 |;..for(i|=1;i<mod|
|00003190| 65 6c 44 46 3b 69 2b 2b | 29 7b 0d 09 09 70 72 69 |elDF;i++|){...pri|
|000031a0| 6e 74 66 28 22 49 6e 69 | 74 69 61 6c 20 76 61 6c |ntf("Ini|tial val|
|000031b0| 75 65 20 66 6f 72 20 25 | 73 3f 20 28 25 2e 32 66 |ue for %|s? (%.2f|
|000031c0| 29 3a 22 2c 70 61 72 61 | 6d 4e 61 6d 65 5b 69 5d |):",para|mName[i]|
|000031d0| 2c 70 61 72 61 6d 50 74 | 72 5b 69 5d 29 3b 0d 09 |,paramPt|r[i]);..|
|000031e0| 09 67 65 74 73 28 73 74 | 72 69 6e 67 29 3b 0d 09 |.gets(st|ring);..|
|000031f0| 09 73 73 63 61 6e 66 28 | 73 74 72 69 6e 67 2c 22 |.sscanf(|string,"|
|00003200| 25 6c 66 22 2c 26 70 61 | 72 61 6d 50 74 72 5b 69 |%lf",&pa|ramPtr[i|
|00003210| 5d 29 3b 0d 09 7d 0d 09 | 66 6f 72 28 69 3d 6d 6f |]);..}..|for(i=mo|
|00003220| 64 65 6c 44 46 3b 69 3c | 50 41 52 41 4d 53 3b 69 |delDF;i<|PARAMS;i|
|00003230| 2b 2b 29 7b 0d 09 09 70 | 72 69 6e 74 66 28 22 46 |++){...p|rintf("F|
|00003240| 69 78 65 64 20 76 61 6c | 75 65 20 66 6f 72 20 25 |ixed val|ue for %|
|00003250| 73 3f 20 28 25 2e 32 66 | 29 3a 22 2c 70 61 72 61 |s? (%.2f|):",para|
|00003260| 6d 4e 61 6d 65 5b 69 5d | 2c 70 61 72 61 6d 50 74 |mName[i]|,paramPt|
|00003270| 72 5b 69 5d 29 3b 0d 09 | 09 67 65 74 73 28 73 74 |r[i]);..|.gets(st|
|00003280| 72 69 6e 67 29 3b 0d 09 | 09 73 73 63 61 6e 66 28 |ring);..|.sscanf(|
|00003290| 73 74 72 69 6e 67 2c 22 | 25 6c 66 22 2c 26 70 61 |string,"|%lf",&pa|
|000032a0| 72 61 6d 50 74 72 5b 69 | 5d 29 3b 0d 09 7d 0d 09 |ramPtr[i|]);..}..|
|000032b0| 69 6e 69 74 50 61 72 61 | 6d 73 3d 70 61 72 61 6d |initPara|ms=param|
|000032c0| 73 3b 0d 09 0d 09 69 66 | 28 70 61 72 61 6d 73 2e |s;....if|(params.|
|000032d0| 64 65 6c 74 61 3d 3d 30 | 2e 30 29 0d 09 09 70 72 |delta==0|.0)...pr|
|000032e0| 69 6e 74 66 28 22 5c 6e | 2a 2a 2a 2a 5c 6e 43 41 |intf("\n|****\nCA|
|000032f0| 55 54 49 4f 4e 3a 20 79 | 6f 75 27 76 65 20 73 65 |UTION: y|ou've se|
|00003300| 74 20 64 65 6c 74 61 20 | 74 6f 20 7a 65 72 6f 3b |t delta |to zero;|
|00003310| 20 64 6f 6e 27 74 20 65 | 78 70 65 63 74 20 74 6f | don't e|xpect to|
|00003320| 20 66 69 74 20 64 61 74 | 61 20 77 69 74 68 20 61 | fit dat|a with a|
|00003330| 6e 79 20 73 75 70 72 61 | 74 68 72 65 73 68 6f 6c |ny supra|threshol|
|00003340| 64 20 65 72 72 6f 72 73 | 2e 5c 6e 2a 2a 2a 2a 5c |d errors|.\n****\|
|00003350| 6e 22 29 3b 0d 0d 09 70 | 72 69 6e 74 66 28 22 52 |n");...p|rintf("R|
|00003360| 65 61 64 69 6e 67 20 25 | 73 5c 6e 22 2c 64 61 74 |eading %|s\n",dat|
|00003370| 61 46 69 6c 65 4e 61 6d | 65 29 3b 0d 09 69 66 28 |aFileNam|e);..if(|
|00003380| 66 69 74 46 69 6c 65 29 | 66 70 72 69 6e 74 66 28 |fitFile)|fprintf(|
|00003390| 66 69 74 46 69 6c 65 2c | 22 43 6f 6e 64 69 74 69 |fitFile,|"Conditi|
|000033a0| 6f 6e 5c 74 25 73 5c 74 | 25 73 5c 74 25 73 5c 74 |on\t%s\t|%s\t%s\t|
|000033b0| 25 73 5c 74 66 72 65 65 | 20 70 61 72 61 6d 73 22 |%s\tfree| params"|
|000033c0| 0d 09 09 22 5c 74 73 69 | 67 6e 69 66 2e 5c 74 43 |..."\tsi|gnif.\tC|
|000033d0| 68 69 20 73 71 2e 5c 74 | 64 2e 66 2e 5c 74 74 72 |hi sq.\t|d.f.\ttr|
|000033e0| 69 61 6c 73 5c 74 63 6f | 6e 74 72 61 73 74 73 5c |ials\tco|ntrasts\|
|000033f0| 6e 22 0d 09 09 2c 70 61 | 72 61 6d 4e 61 6d 65 5b |n"...,pa|ramName[|
|00003400| 30 5d 2c 70 61 72 61 6d | 4e 61 6d 65 5b 31 5d 2c |0],param|Name[1],|
|00003410| 70 61 72 61 6d 4e 61 6d | 65 5b 32 5d 2c 70 61 72 |paramNam|e[2],par|
|00003420| 61 6d 4e 61 6d 65 5b 33 | 5d 29 3b 0d 09 77 68 69 |amName[3|]);..whi|
|00003430| 6c 65 28 21 66 65 6f 66 | 28 64 61 74 61 46 69 6c |le(!feof|(dataFil|
|00003440| 65 29 29 7b 0d 09 09 2f | 2a 20 6c 61 73 74 20 63 |e)){.../|* last c|
|00003450| 6f 6d 6d 65 6e 74 20 6c | 69 6e 65 20 62 65 66 6f |omment l|ine befo|
|00003460| 72 65 20 64 61 74 61 20 | 69 73 20 75 73 65 64 20 |re data |is used |
|00003470| 61 73 20 61 20 6e 61 6d | 65 20 66 6f 72 20 74 68 |as a nam|e for th|
|00003480| 65 20 63 6f 6e 64 69 74 | 69 6f 6e 20 2a 2f 0d 09 |e condit|ion */..|
|00003490| 09 66 67 65 74 73 28 73 | 74 72 69 6e 67 2c 73 69 |.fgets(s|tring,si|
|000034a0| 7a 65 6f 66 28 73 74 72 | 69 6e 67 29 2c 64 61 74 |zeof(str|ing),dat|
|000034b0| 61 46 69 6c 65 29 3b 0d | 09 09 70 72 69 6e 74 66 |aFile);.|..printf|
|000034c0| 28 22 5c 6e 22 29 3b 0d | 09 09 77 68 69 6c 65 28 |("\n");.|..while(|
|000034d0| 61 3d 66 67 65 74 63 28 | 64 61 74 61 46 69 6c 65 |a=fgetc(|dataFile|
|000034e0| 29 2c 75 6e 67 65 74 63 | 28 61 2c 64 61 74 61 46 |),ungetc|(a,dataF|
|000034f0| 69 6c 65 29 2c 61 3d 3d | 27 23 27 20 7c 7c 20 61 |ile),a==|'#' || a|
|00003500| 3d 3d 45 4f 46 29 7b 0d | 09 09 09 70 72 69 6e 74 |==EOF){.|...print|
|00003510| 66 28 22 25 73 22 2c 73 | 74 72 69 6e 67 29 3b 09 |f("%s",s|tring);.|
|00003520| 09 09 09 09 09 09 09 2f | 2a 20 65 63 68 6f 20 63 |......./|* echo c|
|00003530| 6f 6d 6d 65 6e 74 20 2a | 2f 0d 09 09 09 69 66 28 |omment *|/....if(|
|00003540| 66 69 74 46 69 6c 65 29 | 66 70 72 69 6e 74 66 28 |fitFile)|fprintf(|
|00003550| 66 69 74 46 69 6c 65 2c | 22 25 73 22 2c 73 74 72 |fitFile,|"%s",str|
|00003560| 69 6e 67 29 3b 0d 09 09 | 09 66 67 65 74 73 28 73 |ing);...|.fgets(s|
|00003570| 74 72 69 6e 67 2c 73 69 | 7a 65 6f 66 28 73 74 72 |tring,si|zeof(str|
|00003580| 69 6e 67 29 2c 64 61 74 | 61 46 69 6c 65 29 3b 0d |ing),dat|aFile);.|
|00003590| 09 09 09 69 66 28 66 65 | 6f 66 28 64 61 74 61 46 |...if(fe|of(dataF|
|000035a0| 69 6c 65 29 29 62 72 65 | 61 6b 3b 0d 09 09 7d 0d |ile))bre|ak;...}.|
|000035b0| 09 09 2f 2a 20 67 65 74 | 20 63 6f 6e 64 69 74 69 |../* get| conditi|
|000035c0| 6f 6e 20 6e 61 6d 65 2e | 20 53 74 72 69 70 20 6c |on name.| Strip l|
|000035d0| 65 61 64 69 6e 67 20 23 | 20 61 6e 64 20 61 6e 79 |eading #| and any|
|000035e0| 20 74 72 61 69 6c 69 6e | 67 20 6a 75 6e 6b 20 2a | trailin|g junk *|
|000035f0| 2f 0d 09 09 73 74 72 63 | 70 79 28 63 6f 6e 64 69 |/...strc|py(condi|
|00003600| 74 69 6f 6e 4e 61 6d 65 | 2c 26 73 74 72 69 6e 67 |tionName|,&string|
|00003610| 5b 31 5d 29 3b 0d 09 09 | 66 6f 72 28 69 3d 30 3b |[1]);...|for(i=0;|
|00003620| 69 3c 73 74 72 6c 65 6e | 28 63 6f 6e 64 69 74 69 |i<strlen|(conditi|
|00003630| 6f 6e 4e 61 6d 65 29 3b | 69 2b 2b 29 0d 09 09 09 |onName);|i++)....|
|00003640| 69 66 28 21 69 73 70 72 | 69 6e 74 28 63 6f 6e 64 |if(!ispr|int(cond|
|00003650| 69 74 69 6f 6e 4e 61 6d | 65 5b 69 5d 29 29 63 6f |itionNam|e[i]))co|
|00003660| 6e 64 69 74 69 6f 6e 4e | 61 6d 65 5b 69 5d 3d 30 |nditionN|ame[i]=0|
|00003670| 3b 0d 09 09 70 72 69 6e | 74 66 28 22 5c 6e 22 29 |;...prin|tf("\n")|
|00003680| 3b 0d 09 09 64 61 74 61 | 2e 63 6f 6e 74 72 61 73 |;...data|.contras|
|00003690| 74 73 3d 30 3b 0d 09 09 | 77 68 69 6c 65 28 61 3d |ts=0;...|while(a=|
|000036a0| 66 67 65 74 63 28 64 61 | 74 61 46 69 6c 65 29 2c |fgetc(da|taFile),|
|000036b0| 75 6e 67 65 74 63 28 61 | 2c 64 61 74 61 46 69 6c |ungetc(a|,dataFil|
|000036c0| 65 29 2c 61 21 3d 27 23 | 27 20 26 26 20 61 21 3d |e),a!='#|' && a!=|
|000036d0| 45 4f 46 29 7b 09 2f 2a | 20 72 65 61 64 20 64 61 |EOF){./*| read da|
|000036e0| 74 61 20 2a 2f 0d 09 09 | 09 69 66 28 64 61 74 61 |ta */...|.if(data|
|000036f0| 2e 63 6f 6e 74 72 61 73 | 74 73 3e 3d 4d 41 58 5f |.contras|ts>=MAX_|
|00003700| 43 4f 4e 54 52 41 53 54 | 53 29 7b 0d 09 09 09 09 |CONTRAST|S){.....|
|00003710| 53 6f 72 74 41 6e 64 4d | 65 72 67 65 43 6f 6e 74 |SortAndM|ergeCont|
|00003720| 72 61 73 74 73 28 26 64 | 61 74 61 29 3b 0d 09 09 |rasts(&d|ata);...|
|00003730| 09 09 69 66 28 64 61 74 | 61 2e 63 6f 6e 74 72 61 |..if(dat|a.contra|
|00003740| 73 74 73 3e 3d 4d 41 58 | 5f 43 4f 4e 54 52 41 53 |sts>=MAX|_CONTRAS|
|00003750| 54 53 29 0d 09 09 09 09 | 09 50 72 69 6e 74 66 45 |TS).....|.PrintfE|
|00003760| 78 69 74 28 22 51 75 69 | 63 6b 33 3a 20 63 61 6e |xit("Qui|ck3: can|
|00003770| 27 74 20 68 61 6e 64 6c | 65 20 6d 6f 72 65 20 74 |'t handl|e more t|
|00003780| 68 61 6e 20 25 64 20 64 | 69 66 66 65 72 65 6e 74 |han %d d|ifferent|
|00003790| 20 63 6f 6e 74 72 61 73 | 74 73 2e 5c 6e 22 0d 09 | contras|ts.\n"..|
|000037a0| 09 09 09 09 09 2c 28 69 | 6e 74 29 4d 41 58 5f 43 |.....,(i|nt)MAX_C|
|000037b0| 4f 4e 54 52 41 53 54 53 | 29 3b 0d 09 09 09 7d 0d |ONTRASTS|);....}.|
|000037c0| 09 09 09 66 67 65 74 73 | 28 73 74 72 69 6e 67 2c |...fgets|(string,|
|000037d0| 73 69 7a 65 6f 66 28 73 | 74 72 69 6e 67 29 2c 64 |sizeof(s|tring),d|
|000037e0| 61 74 61 46 69 6c 65 29 | 3b 0d 09 09 09 69 3d 64 |ataFile)|;....i=d|
|000037f0| 61 74 61 2e 63 6f 6e 74 | 72 61 73 74 73 3b 0d 09 |ata.cont|rasts;..|
|00003800| 09 09 69 66 28 30 29 73 | 73 63 61 6e 66 28 73 74 |..if(0)s|scanf(st|
|00003810| 72 69 6e 67 2c 22 25 6c | 66 5c 74 25 6c 64 5c 74 |ring,"%l|f\t%ld\t|
|00003820| 25 6c 64 22 0d 09 09 09 | 09 2c 26 64 61 74 61 2e |%ld"....|.,&data.|
|00003830| 63 5b 69 5d 2e 63 6f 6e | 74 72 61 73 74 2c 26 64 |c[i].con|trast,&d|
|00003840| 61 74 61 2e 63 5b 69 5d | 2e 74 72 69 61 6c 73 2c |ata.c[i]|.trials,|
|00003850| 26 64 61 74 61 2e 63 5b | 69 5d 2e 63 6f 72 72 65 |&data.c[|i].corre|
|00003860| 63 74 29 3b 0d 09 09 09 | 65 6c 73 65 7b 0d 09 09 |ct);....|else{...|
|00003870| 09 09 2f 2a 20 74 68 69 | 73 20 63 6f 64 65 20 77 |../* thi|s code w|
|00003880| 69 6c 6c 20 61 63 63 65 | 70 74 20 33 34 2e 30 20 |ill acce|pt 34.0 |
|00003890| 61 73 20 61 6e 20 69 6e | 74 65 67 65 72 20 2a 2f |as an in|teger */|
|000038a0| 0d 09 09 09 09 73 3d 73 | 74 72 69 6e 67 3b 0d 09 |.....s=s|tring;..|
|000038b0| 09 09 09 64 61 74 61 2e | 63 5b 69 5d 2e 63 6f 6e |...data.|c[i].con|
|000038c0| 74 72 61 73 74 3d 73 74 | 72 74 6f 64 28 73 2c 26 |trast=st|rtod(s,&|
|000038d0| 73 29 3b 0d 09 09 09 09 | 64 61 74 61 2e 63 5b 69 |s);.....|data.c[i|
|000038e0| 5d 2e 74 72 69 61 6c 73 | 3d 73 74 72 74 6f 64 28 |].trials|=strtod(|
|000038f0| 73 2c 26 73 29 3b 0d 09 | 09 09 09 64 61 74 61 2e |s,&s);..|...data.|
|00003900| 63 5b 69 5d 2e 63 6f 72 | 72 65 63 74 3d 73 74 72 |c[i].cor|rect=str|
|00003910| 74 6f 64 28 73 2c 26 73 | 29 3b 0d 09 09 09 7d 0d |tod(s,&s|);....}.|
|00003920| 09 09 09 64 61 74 61 2e | 63 6f 6e 74 72 61 73 74 |...data.|contrast|
|00003930| 73 2b 2b 3b 0d 09 09 7d | 0d 09 09 69 66 28 64 61 |s++;...}|...if(da|
|00003940| 74 61 2e 63 6f 6e 74 72 | 61 73 74 73 3d 3d 30 29 |ta.contr|asts==0)|
|00003950| 7b 0d 09 09 09 2f 2a 20 | 4e 6f 20 64 61 74 61 2e |{..../* |No data.|
|00003960| 20 53 6b 69 70 20 74 6f | 20 6e 65 78 74 20 63 6f | Skip to| next co|
|00003970| 6e 64 69 74 69 6f 6e 2e | 20 2a 2f 0d 09 09 09 63 |ndition.| */....c|
|00003980| 6f 6e 74 69 6e 75 65 3b | 0d 09 09 7d 0d 09 09 53 |ontinue;|...}...S|
|00003990| 6f 72 74 41 6e 64 4d 65 | 72 67 65 43 6f 6e 74 72 |ortAndMe|rgeContr|
|000039a0| 61 73 74 73 28 26 64 61 | 74 61 29 3b 0d 09 09 74 |asts(&da|ta);...t|
|000039b0| 72 69 61 6c 73 3d 30 3b | 0d 09 09 66 6f 72 28 69 |rials=0;|...for(i|
|000039c0| 3d 30 3b 69 3c 64 61 74 | 61 2e 63 6f 6e 74 72 61 |=0;i<dat|a.contra|
|000039d0| 73 74 73 3b 69 2b 2b 29 | 74 72 69 61 6c 73 2b 3d |sts;i++)|trials+=|
|000039e0| 64 61 74 61 2e 63 5b 69 | 5d 2e 74 72 69 61 6c 73 |data.c[i|].trials|
|000039f0| 3b 09 2f 2a 20 74 6f 74 | 61 6c 20 74 72 69 61 6c |;./* tot|al trial|
|00003a00| 73 20 2a 2f 0d 09 09 70 | 61 72 61 6d 73 3d 69 6e |s */...p|arams=in|
|00003a10| 69 74 50 61 72 61 6d 73 | 3b 09 2f 2a 20 69 6e 69 |itParams|;./* ini|
|00003a20| 74 69 61 6c 20 67 75 65 | 73 73 20 26 20 66 69 78 |tial gue|ss & fix|
|00003a30| 65 64 20 76 61 6c 75 65 | 73 20 2a 2f 0d 09 09 69 |ed value|s */...i|
|00003a40| 66 28 6d 6f 64 65 6c 44 | 46 3e 30 29 0d 09 09 09 |f(modelD|F>0)....|
|00003a50| 70 61 72 61 6d 73 2e 6c | 6f 67 41 6c 70 68 61 3d |params.l|ogAlpha=|
|00003a60| 6c 6f 67 28 64 61 74 61 | 2e 63 5b 64 61 74 61 2e |log(data|.c[data.|
|00003a70| 63 6f 6e 74 72 61 73 74 | 73 2f 32 5d 2e 63 6f 6e |contrast|s/2].con|
|00003a80| 74 72 61 73 74 29 2f 6c | 6f 67 28 31 30 2e 30 29 |trast)/l|og(10.0)|
|00003a90| 3b 09 2f 2a 20 6d 65 64 | 69 61 6e 20 63 6f 6e 74 |;./* med|ian cont|
|00003aa0| 72 61 73 74 20 2a 2f 0d | 09 09 70 72 69 6e 74 66 |rast */.|..printf|
|00003ab0| 28 22 25 73 5c 6e 22 2c | 63 6f 6e 64 69 74 69 6f |("%s\n",|conditio|
|00003ac0| 6e 4e 61 6d 65 29 3b 0d | 09 09 70 72 69 6e 74 66 |nName);.|..printf|
|00003ad0| 28 22 5c 74 25 73 20 20 | 20 25 73 20 20 20 25 73 |("\t%s | %s %s|
|00003ae0| 20 20 20 25 73 20 20 63 | 6f 6e 74 72 61 73 74 73 | %s c|ontrasts|
|00003af0| 20 74 72 69 61 6c 73 20 | 73 69 67 6e 69 66 2e 20 | trials |signif. |
|00003b00| 43 68 69 20 73 71 2e 20 | 20 20 64 2e 66 2e 5c 6e |Chi sq. | d.f.\n|
|00003b10| 22 2c 0d 09 09 09 70 61 | 72 61 6d 4e 61 6d 65 5b |",....pa|ramName[|
|00003b20| 30 5d 2c 70 61 72 61 6d | 4e 61 6d 65 5b 31 5d 2c |0],param|Name[1],|
|00003b30| 70 61 72 61 6d 4e 61 6d | 65 5b 32 5d 2c 70 61 72 |paramNam|e[2],par|
|00003b40| 61 6d 4e 61 6d 65 5b 33 | 5d 29 3b 0d 09 09 70 72 |amName[3|]);...pr|
|00003b50| 69 6e 74 66 28 22 47 75 | 65 73 73 3a 22 29 3b 0d |intf("Gu|ess:");.|
|00003b60| 09 09 70 72 69 6e 74 66 | 28 22 5c 74 25 37 2e 32 |..printf|("\t%7.2|
|00003b70| 66 25 38 2e 31 66 25 38 | 2e 32 66 25 38 2e 32 66 |f%8.1f%8|.2f%8.2f|
|00003b80| 5c 6e 22 2c 0d 09 09 09 | 70 61 72 61 6d 50 74 72 |\n",....|paramPtr|
|00003b90| 5b 30 5d 2c 70 61 72 61 | 6d 50 74 72 5b 31 5d 2c |[0],para|mPtr[1],|
|00003ba0| 70 61 72 61 6d 50 74 72 | 5b 32 5d 2c 70 61 72 61 |paramPtr|[2],para|
|00003bb0| 6d 50 74 72 5b 33 5d 29 | 3b 0d 09 09 73 69 67 6e |mPtr[3])|;...sign|
|00003bc0| 69 66 69 63 61 6e 63 65 | 3d 50 73 79 63 68 6f 6d |ificance|=Psychom|
|00003bd0| 65 74 72 69 63 46 69 74 | 28 26 70 61 72 61 6d 73 |etricFit|(&params|
|00003be0| 2c 4d 6f 64 65 6c 46 75 | 6e 63 74 69 6f 6e 2c 26 |,ModelFu|nction,&|
|00003bf0| 64 61 74 61 2c 26 6d 6f | 64 65 6c 4c 4c 2c 6d 6f |data,&mo|delLL,mo|
|00003c00| 64 65 6c 44 46 2c 0d 09 | 09 09 26 63 68 69 53 71 |delDF,..|..&chiSq|
|00003c10| 75 61 72 65 2c 26 63 68 | 69 53 71 75 61 72 65 44 |uare,&ch|iSquareD|
|00003c20| 46 29 3b 0d 09 09 70 72 | 69 6e 74 66 28 22 46 69 |F);...pr|intf("Fi|
|00003c30| 74 3a 22 29 3b 0d 09 09 | 70 72 69 6e 74 66 28 22 |t:");...|printf("|
|00003c40| 5c 74 25 37 2e 32 66 25 | 38 2e 31 66 25 38 2e 32 |\t%7.2f%|8.1f%8.2|
|00003c50| 66 25 38 2e 32 66 22 2c | 0d 09 09 09 70 61 72 61 |f%8.2f",|....para|
|00003c60| 6d 50 74 72 5b 30 5d 2c | 70 61 72 61 6d 50 74 72 |mPtr[0],|paramPtr|
|00003c70| 5b 31 5d 2c 70 61 72 61 | 6d 50 74 72 5b 32 5d 2c |[1],para|mPtr[2],|
|00003c80| 70 61 72 61 6d 50 74 72 | 5b 33 5d 29 3b 0d 09 09 |paramPtr|[3]);...|
|00003c90| 70 72 69 6e 74 66 28 22 | 25 38 6c 64 25 38 6c 64 |printf("|%8ld%8ld|
|00003ca0| 22 2c 64 61 74 61 2e 63 | 6f 6e 74 72 61 73 74 73 |",data.c|ontrasts|
|00003cb0| 2c 74 72 69 61 6c 73 29 | 3b 0d 09 09 70 72 69 6e |,trials)|;...prin|
|00003cc0| 74 66 28 22 25 38 2e 32 | 66 25 38 2e 31 66 25 38 |tf("%8.2|f%8.1f%8|
|00003cd0| 64 5c 6e 22 2c 73 69 67 | 6e 69 66 69 63 61 6e 63 |d\n",sig|nificanc|
|00003ce0| 65 2c 63 68 69 53 71 75 | 61 72 65 2c 63 68 69 53 |e,chiSqu|are,chiS|
|00003cf0| 71 75 61 72 65 44 46 29 | 3b 0d 09 09 69 66 28 66 |quareDF)|;...if(f|
|00003d00| 69 74 46 69 6c 65 29 66 | 70 72 69 6e 74 66 28 66 |itFile)f|printf(f|
|00003d10| 69 74 46 69 6c 65 2c 22 | 25 73 22 0d 09 09 09 09 |itFile,"|%s".....|
|00003d20| 22 5c 74 25 37 2e 34 66 | 5c 74 25 37 2e 34 66 5c |"\t%7.4f|\t%7.4f\|
|00003d30| 74 25 37 2e 34 66 5c 74 | 25 37 2e 34 66 5c 74 25 |t%7.4f\t|%7.4f\t%|
|00003d40| 37 64 22 0d 09 09 09 09 | 22 5c 74 25 37 2e 34 66 |7d".....|"\t%7.4f|
|00003d50| 5c 74 25 37 2e 34 66 5c | 74 25 37 64 22 0d 09 09 |\t%7.4f\|t%7d"...|
|00003d60| 09 09 22 5c 74 25 37 6c | 64 5c 74 25 37 6c 64 5c |.."\t%7l|d\t%7ld\|
|00003d70| 6e 22 2c 0d 09 09 09 09 | 63 6f 6e 64 69 74 69 6f |n",.....|conditio|
|00003d80| 6e 4e 61 6d 65 2c 0d 09 | 09 09 09 70 61 72 61 6d |nName,..|...param|
|00003d90| 50 74 72 5b 30 5d 2c 70 | 61 72 61 6d 50 74 72 5b |Ptr[0],p|aramPtr[|
|00003da0| 31 5d 2c 70 61 72 61 6d | 50 74 72 5b 32 5d 2c 70 |1],param|Ptr[2],p|
|00003db0| 61 72 61 6d 50 74 72 5b | 33 5d 2c 6d 6f 64 65 6c |aramPtr[|3],model|
|00003dc0| 44 46 2c 0d 09 09 09 09 | 73 69 67 6e 69 66 69 63 |DF,.....|signific|
|00003dd0| 61 6e 63 65 2c 63 68 69 | 53 71 75 61 72 65 2c 63 |ance,chi|Square,c|
|00003de0| 68 69 53 71 75 61 72 65 | 44 46 2c 0d 09 09 09 09 |hiSquare|DF,.....|
|00003df0| 74 72 69 61 6c 73 2c 64 | 61 74 61 2e 63 6f 6e 74 |trials,d|ata.cont|
|00003e00| 72 61 73 74 73 29 3b 0d | 09 0d 09 09 2f 2a 20 4e |rasts);.|..../* N|
|00003e10| 6f 77 20 63 72 65 61 74 | 65 20 70 6c 6f 74 20 66 |ow creat|e plot f|
|00003e20| 69 6c 65 20 2a 2f 0d 09 | 09 69 66 28 66 69 74 46 |ile */..|.if(fitF|
|00003e30| 69 6c 65 29 7b 0d 09 09 | 09 73 74 72 63 70 79 28 |ile){...|.strcpy(|
|00003e40| 70 6c 6f 74 46 69 6c 65 | 4e 61 6d 65 2c 66 69 74 |plotFile|Name,fit|
|00003e50| 46 69 6c 65 4e 61 6d 65 | 29 3b 0d 09 09 09 70 6c |FileName|);....pl|
|00003e60| 6f 74 46 69 6c 65 4e 61 | 6d 65 5b 73 74 72 6c 65 |otFileNa|me[strle|
|00003e70| 6e 28 70 6c 6f 74 46 69 | 6c 65 4e 61 6d 65 29 2d |n(plotFi|leName)-|
|00003e80| 73 74 72 6c 65 6e 28 22 | 2e 66 69 74 22 29 5d 3d |strlen("|.fit")]=|
|00003e90| 30 3b 09 2f 2a 20 73 74 | 72 69 70 20 6f 66 66 20 |0;./* st|rip off |
|00003ea0| 74 68 65 20 22 2e 66 69 | 74 22 20 2a 2f 0d 09 09 |the ".fi|t" */...|
|00003eb0| 09 73 70 72 69 6e 74 66 | 28 70 6c 6f 74 46 69 6c |.sprintf|(plotFil|
|00003ec0| 65 4e 61 6d 65 2c 22 25 | 73 2e 25 73 2e 70 6c 6f |eName,"%|s.%s.plo|
|00003ed0| 74 22 2c 70 6c 6f 74 46 | 69 6c 65 4e 61 6d 65 2c |t",plotF|ileName,|
|00003ee0| 63 6f 6e 64 69 74 69 6f | 6e 4e 61 6d 65 29 3b 0d |conditio|nName);.|
|00003ef0| 09 09 09 70 6c 6f 74 46 | 69 6c 65 3d 66 6f 70 65 |...plotF|ile=fope|
|00003f00| 6e 28 70 6c 6f 74 46 69 | 6c 65 4e 61 6d 65 2c 22 |n(plotFi|leName,"|
|00003f10| 77 22 29 3b 0d 09 09 09 | 69 66 28 70 6c 6f 74 46 |w");....|if(plotF|
|00003f20| 69 6c 65 3d 3d 4e 55 4c | 4c 29 7b 0d 09 09 09 09 |ile==NUL|L){.....|
|00003f30| 50 72 69 6e 74 66 45 78 | 69 74 28 22 53 6f 72 72 |PrintfEx|it("Sorr|
|00003f40| 79 2c 20 49 20 63 61 6e | 27 74 20 63 72 65 61 74 |y, I can|'t creat|
|00003f50| 65 20 66 69 6c 65 20 5c | 22 25 73 5c 22 2e 5c 6e |e file \|"%s\".\n|
|00003f60| 5c 30 30 37 22 2c 70 6c | 6f 74 46 69 6c 65 4e 61 |\007",pl|otFileNa|
|00003f70| 6d 65 29 3b 0d 09 09 09 | 7d 0d 09 09 09 23 69 66 |me);....|}....#if|
|00003f80| 20 4d 41 43 5f 43 0d 09 | 09 09 09 53 65 74 46 69 | MAC_C..|...SetFi|
|00003f90| 6c 65 49 6e 66 6f 28 70 | 6c 6f 74 46 69 6c 65 4e |leInfo(p|lotFileN|
|00003fa0| 61 6d 65 2c 27 54 45 58 | 54 27 2c 50 4c 4f 54 5f |ame,'TEX|T',PLOT_|
|00003fb0| 43 52 45 41 54 4f 52 29 | 3b 09 2f 2a 20 73 70 65 |CREATOR)|;./* spe|
|00003fc0| 63 69 66 79 20 67 72 61 | 70 68 69 6e 67 20 70 72 |cify gra|phing pr|
|00003fd0| 6f 67 72 61 6d 20 2a 2f | 0d 09 09 09 09 69 66 28 |ogram */|.....if(|
|00003fe0| 50 4c 4f 54 5f 43 52 45 | 41 54 4f 52 3d 3d 27 43 |PLOT_CRE|ATOR=='C|
|00003ff0| 47 52 46 27 29 66 70 72 | 69 6e 74 66 28 70 6c 6f |GRF')fpr|intf(plo|
|00004000| 74 46 69 6c 65 2c 22 2a | 5c 6e 22 29 3b 0d 09 09 |tFile,"*|\n");...|
|00004010| 09 23 65 6e 64 69 66 0d | 09 09 09 6d 6f 6e 6f 74 |.#endif.|...monot|
|00004020| 6f 6e 69 63 44 61 74 61 | 3d 64 61 74 61 3b 0d 09 |onicData|=data;..|
|00004030| 09 09 4d 6f 6e 6f 74 6f | 6e 69 63 46 69 74 28 26 |..Monoto|nicFit(&|
|00004040| 6d 6f 6e 6f 74 6f 6e 69 | 63 44 61 74 61 2c 26 6d |monotoni|cData,&m|
|00004050| 6f 6e 6f 74 6f 6e 69 63 | 4c 4c 2c 26 6d 6f 6e 6f |onotonic|LL,&mono|
|00004060| 74 6f 6e 69 63 44 46 29 | 3b 09 2f 2a 20 6f 76 65 |tonicDF)|;./* ove|
|00004070| 72 77 72 69 74 65 73 20 | 64 61 74 61 20 77 69 74 |rwrites |data wit|
|00004080| 68 20 66 69 74 20 2a 2f | 0d 09 09 09 66 70 72 69 |h fit */|....fpri|
|00004090| 6e 74 66 28 70 6c 6f 74 | 46 69 6c 65 2c 22 43 6f |ntf(plot|File,"Co|
|000040a0| 6e 74 72 61 73 74 5c 74 | 25 73 5c 74 4c 6f 77 65 |ntrast\t|%s\tLowe|
|000040b0| 72 20 62 6f 75 6e 64 5c | 74 55 70 70 65 72 20 62 |r bound\|tUpper b|
|000040c0| 6f 75 6e 64 5c 74 25 73 | 20 66 69 74 5c 74 4d 6f |ound\t%s| fit\tMo|
|000040d0| 6e 6f 74 6f 6e 65 20 66 | 69 74 5c 74 54 72 69 61 |notone f|it\tTria|
|000040e0| 6c 73 5c 74 43 6f 72 72 | 65 63 74 5c 74 50 61 72 |ls\tCorr|ect\tPar|
|000040f0| 61 6d 65 74 65 72 73 5c | 6e 22 2c 0d 09 09 09 09 |ameters\|n",.....|
|00004100| 63 6f 6e 64 69 74 69 6f | 6e 4e 61 6d 65 2c 6d 6f |conditio|nName,mo|
|00004110| 64 65 6c 4e 61 6d 65 29 | 3b 0d 09 09 09 66 6f 72 |delName)|;....for|
|00004120| 28 69 3d 30 3b 69 3c 64 | 61 74 61 2e 63 6f 6e 74 |(i=0;i<d|ata.cont|
|00004130| 72 61 73 74 73 3b 69 2b | 2b 29 7b 0d 09 09 09 09 |rasts;i+|+){.....|
|00004140| 63 50 74 72 3d 26 64 61 | 74 61 2e 63 5b 69 5d 3b |cPtr=&da|ta.c[i];|
|00004150| 0d 09 09 09 09 66 70 72 | 69 6e 74 66 28 70 6c 6f |.....fpr|intf(plo|
|00004160| 74 46 69 6c 65 2c 22 25 | 2e 33 66 22 2c 63 50 74 |tFile,"%|.3f",cPt|
|00004170| 72 2d 3e 63 6f 6e 74 72 | 61 73 74 29 3b 0d 09 09 |r->contr|ast);...|
|00004180| 09 09 69 66 28 63 50 74 | 72 2d 3e 74 72 69 61 6c |..if(cPt|r->trial|
|00004190| 73 3e 30 29 7b 0d 09 09 | 09 09 09 66 70 72 69 6e |s>0){...|...fprin|
|000041a0| 74 66 28 70 6c 6f 74 46 | 69 6c 65 2c 22 5c 74 25 |tf(plotF|ile,"\t%|
|000041b0| 2e 33 66 22 2c 63 50 74 | 72 2d 3e 63 6f 72 72 65 |.3f",cPt|r->corre|
|000041c0| 63 74 2f 28 64 6f 75 62 | 6c 65 29 63 50 74 72 2d |ct/(doub|le)cPtr-|
|000041d0| 3e 74 72 69 61 6c 73 29 | 3b 0d 09 09 09 09 09 66 |>trials)|;......f|
|000041e0| 70 72 69 6e 74 66 28 70 | 6c 6f 74 46 69 6c 65 2c |printf(p|lotFile,|
|000041f0| 22 5c 74 25 2e 33 66 5c | 74 25 2e 33 66 22 2c 0d |"\t%.3f\|t%.3f",.|
|00004200| 09 09 09 09 09 09 42 69 | 6e 6f 6d 69 61 6c 4c 6f |......Bi|nomialLo|
|00004210| 77 65 72 42 6f 75 6e 64 | 28 30 2e 39 35 2c 63 50 |werBound|(0.95,cP|
|00004220| 74 72 2d 3e 63 6f 72 72 | 65 63 74 2c 63 50 74 72 |tr->corr|ect,cPtr|
|00004230| 2d 3e 74 72 69 61 6c 73 | 29 2c 0d 09 09 09 09 09 |->trials|),......|
|00004240| 09 42 69 6e 6f 6d 69 61 | 6c 55 70 70 65 72 42 6f |.Binomia|lUpperBo|
|00004250| 75 6e 64 28 30 2e 39 35 | 2c 63 50 74 72 2d 3e 63 |und(0.95|,cPtr->c|
|00004260| 6f 72 72 65 63 74 2c 63 | 50 74 72 2d 3e 74 72 69 |orrect,c|Ptr->tri|
|00004270| 61 6c 73 29 29 3b 0d 09 | 09 09 09 7d 0d 09 09 09 |als));..|...}....|
|00004280| 09 65 6c 73 65 0d 09 09 | 09 09 09 66 70 72 69 6e |.else...|...fprin|
|00004290| 74 66 28 70 6c 6f 74 46 | 69 6c 65 2c 22 5c 74 5c |tf(plotF|ile,"\t\|
|000042a0| 74 5c 74 22 29 3b 0d 09 | 09 09 09 66 70 72 69 6e |t\t");..|...fprin|
|000042b0| 74 66 28 70 6c 6f 74 46 | 69 6c 65 2c 22 5c 74 25 |tf(plotF|ile,"\t%|
|000042c0| 2e 33 66 22 2c 28 2a 4d | 6f 64 65 6c 46 75 6e 63 |.3f",(*M|odelFunc|
|000042d0| 74 69 6f 6e 29 28 63 50 | 74 72 2d 3e 63 6f 6e 74 |tion)(cP|tr->cont|
|000042e0| 72 61 73 74 2c 26 70 61 | 72 61 6d 73 29 29 3b 0d |rast,&pa|rams));.|
|000042f0| 09 09 09 09 69 66 28 63 | 50 74 72 2d 3e 74 72 69 |....if(c|Ptr->tri|
|00004300| 61 6c 73 3e 30 29 0d 09 | 09 09 09 09 66 70 72 69 |als>0)..|....fpri|
|00004310| 6e 74 66 28 70 6c 6f 74 | 46 69 6c 65 2c 22 5c 74 |ntf(plot|File,"\t|
|00004320| 25 2e 33 66 5c 74 25 35 | 6c 64 5c 74 25 35 6c 64 |%.3f\t%5|ld\t%5ld|
|00004330| 22 2c 0d 09 09 09 09 09 | 09 6d 6f 6e 6f 74 6f 6e |",......|.monoton|
|00004340| 69 63 44 61 74 61 2e 63 | 5b 69 5d 2e 63 6f 72 72 |icData.c|[i].corr|
|00004350| 65 63 74 2f 28 64 6f 75 | 62 6c 65 29 6d 6f 6e 6f |ect/(dou|ble)mono|
|00004360| 74 6f 6e 69 63 44 61 74 | 61 2e 63 5b 69 5d 2e 74 |tonicDat|a.c[i].t|
|00004370| 72 69 61 6c 73 2c 0d 09 | 09 09 09 09 09 63 50 74 |rials,..|.....cPt|
|00004380| 72 2d 3e 74 72 69 61 6c | 73 2c 63 50 74 72 2d 3e |r->trial|s,cPtr->|
|00004390| 63 6f 72 72 65 63 74 29 | 3b 0d 09 09 09 09 65 6c |correct)|;.....el|
|000043a0| 73 65 20 66 70 72 69 6e | 74 66 28 70 6c 6f 74 46 |se fprin|tf(plotF|
|000043b0| 69 6c 65 2c 22 5c 74 5c | 74 5c 74 22 29 3b 0d 09 |ile,"\t\|t\t");..|
|000043c0| 09 09 09 69 66 28 69 3c | 50 41 52 41 4d 53 29 66 |...if(i<|PARAMS)f|
|000043d0| 70 72 69 6e 74 66 28 70 | 6c 6f 74 46 69 6c 65 2c |printf(p|lotFile,|
|000043e0| 22 5c 74 25 73 3d 25 2e | 33 66 22 2c 70 61 72 61 |"\t%s=%.|3f",para|
|000043f0| 6d 4e 61 6d 65 5b 69 5d | 2c 70 61 72 61 6d 50 74 |mName[i]|,paramPt|
|00004400| 72 5b 69 5d 29 3b 0d 09 | 09 09 09 69 66 28 69 3d |r[i]);..|...if(i=|
|00004410| 3d 30 29 66 70 72 69 6e | 74 66 28 70 6c 6f 74 46 |=0)fprin|tf(plotF|
|00004420| 69 6c 65 2c 22 5c 74 61 | 6c 70 68 61 3d 25 2e 34 |ile,"\ta|lpha=%.4|
|00004430| 66 22 2c 70 6f 77 28 31 | 30 2e 30 2c 70 61 72 61 |f",pow(1|0.0,para|
|00004440| 6d 50 74 72 5b 30 5d 29 | 29 3b 0d 09 09 09 09 69 |mPtr[0])|);.....i|
|00004450| 66 28 69 3d 3d 50 41 52 | 41 4d 53 29 66 70 72 69 |f(i==PAR|AMS)fpri|
|00004460| 6e 74 66 28 70 6c 6f 74 | 46 69 6c 65 2c 22 5c 74 |ntf(plot|File,"\t|
|00004470| 73 69 67 6e 69 66 69 63 | 61 6e 63 65 3d 25 2e 33 |signific|ance=%.3|
|00004480| 66 22 2c 73 69 67 6e 69 | 66 69 63 61 6e 63 65 29 |f",signi|ficance)|
|00004490| 3b 0d 09 09 09 09 66 70 | 72 69 6e 74 66 28 70 6c |;.....fp|rintf(pl|
|000044a0| 6f 74 46 69 6c 65 2c 22 | 5c 6e 22 29 3b 0d 09 09 |otFile,"|\n");...|
|000044b0| 09 7d 0d 09 09 09 69 66 | 28 70 6c 6f 74 46 69 6c |.}....if|(plotFil|
|000044c0| 65 29 66 63 6c 6f 73 65 | 28 70 6c 6f 74 46 69 6c |e)fclose|(plotFil|
|000044d0| 65 29 3b 0d 09 09 7d 0d | 09 7d 0d 09 69 66 28 66 |e);...}.|.}..if(f|
|000044e0| 69 74 46 69 6c 65 29 66 | 63 6c 6f 73 65 28 66 69 |itFile)f|close(fi|
|000044f0| 74 46 69 6c 65 29 3b 0d | 09 69 66 28 64 61 74 61 |tFile);.|.if(data|
|00004500| 46 69 6c 65 29 66 63 6c | 6f 73 65 28 64 61 74 61 |File)fcl|ose(data|
|00004510| 46 69 6c 65 29 3b 0d 7d | 0d 0d 00 00 00 00 00 00 |File);.}|........|
|00004520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004580| 00 00 01 00 00 00 02 b0 | 00 00 01 b0 00 00 00 7a |........|.......z|
|00004590| 69 6f 6e 4e 61 6d 65 29 | 3b 0d 09 09 09 66 6f 72 |ionName)|;....for|
|000045a0| 28 69 3d 30 3b 69 3c 64 | 61 74 61 2e 63 6f 6e 74 |(i=0;i<d|ata.cont|
|000045b0| 08 51 75 69 63 6b 33 2e | 63 69 02 00 00 00 54 45 |.Quick3.|ci....TE|
|000045c0| 58 54 43 57 49 45 01 00 | 00 8c 00 00 00 00 00 00 |XTCWIE..|........|
|000045d0| 00 00 54 45 58 54 43 57 | 49 45 01 00 00 8c 00 00 |..TEXTCW|IE......|
|000045e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045f0| 00 00 a2 41 16 b5 00 00 | 44 9a 00 00 03 2a 2e 33 |...A....|D....*.3|
|00004600| 66 5c 74 25 35 6c 64 5c | 74 25 35 6c 64 5c 6e 22 |f\t%5ld\|t%5ld\n"|
|00004610| 2c 0d 09 09 09 09 09 63 | 50 74 72 2d 3e 63 6f 6e |,......c|Ptr->con|
|00004620| 74 72 61 73 74 2c 0d 09 | 09 09 09 09 63 50 74 72 |trast,..|....cPtr|
|00004630| 2d 3e 63 6f 72 72 65 63 | 74 2f 28 64 6f 75 62 6c |->correc|t/(doubl|
|00004640| 65 29 63 50 74 72 2d 3e | 74 72 69 61 6c 73 2c 0d |e)cPtr->|trials,.|
|00004650| 09 09 09 09 09 57 65 69 | 62 75 6c 6c 28 63 50 74 |.....Wei|bull(cPt|
|00004660| 72 2d 3e 63 6f 6e 74 72 | 61 73 74 2c 26 70 61 72 |r->contr|ast,&par|
|00004670| 61 6d 73 29 2c 0d 09 09 | 09 09 09 6d 6f 6e 6f 74 |ams),...|...monot|
|00004680| 00 00 00 1e 00 00 34 b0 | 01 2f 00 00 00 00 00 00 |......4.|./......|
|00004690| 37 64 01 44 00 00 00 00 | 00 00 31 87 01 1c 00 00 |7d.D....|..1.....|
|000046a0| 00 00 00 00 00 fa 00 09 | 00 16 00 00 2f 84 01 0c |........|..../...|
|000046b0| 00 2a 36 c4 00 00 07 50 | 41 52 41 4d 53 20 00 16 |.*6....P|ARAMS ..|
|000046c0| 00 00 2f 84 01 0c 00 2a | 36 c8 00 00 07 6d 6f 64 |../....*|6....mod|
|000046d0| 65 6c 44 46 00 1c 00 00 | 35 14 01 31 00 2a 36 cc |elDF....|5..1.*6.|
|000046e0| 00 00 0d 4d 41 58 5f 43 | 4f 4e 54 52 41 53 54 53 |...MAX_C|ONTRASTS|
|000046f0| 00 1e 00 00 37 4b 01 42 | 00 2a 36 94 00 00 0f 64 |....7K.B|.*6....d|
|00004700| 61 74 61 2e 63 6f 6e 74 | 72 61 73 74 73 20 00 18 |ata.cont|rasts ..|
|00004710| 00 00 37 64 01 44 00 2a | 36 98 00 00 09 64 61 74 |..7d.D.*|6....dat|
|00004720| 61 2e 63 5b 30 5d 00 18 | 00 00 37 64 01 44 00 2a |a.c[0]..|..7d.D.*|
|00004730| 36 88 00 00 09 64 61 74 | 61 2e 63 5b 31 5d 00 18 |6....dat|a.c[1]..|
|00004740| 00 00 37 64 01 44 00 2a | 36 78 00 00 09 64 61 74 |..7d.D.*|6x...dat|
|00004750| 61 2e 63 5b 36 5d 00 26 | 00 00 37 64 01 44 00 2a |a.c[6].&|..7d.D.*|
|00004760| 36 5c 40 00 00 b8 01 46 | 01 61 02 75 94 20 00 00 |6\@....F|.a.u. ..|
|00004770| 00 00 00 20 07 64 61 74 | 61 2e 63 20 00 24 00 00 |... .dat|a.c .$..|
|00004780| 37 64 01 44 00 2a 35 d0 | 80 00 00 cc 01 4a 01 75 |7d.D.*5.|.....J.u|
|00004790| 02 79 94 20 00 00 00 00 | 00 00 05 64 61 74 61 20 |.y. ....|...data |
|000047a0| 00 00 00 38 00 04 00 00 | 3c 51 00 00 3c 53 03 69 |...8....|<Q..<S.i|
|000047b0| 66 00 00 00 37 66 00 00 | 37 68 03 69 66 00 00 00 |f...7f..|7h.if...|
|000047c0| 26 c4 00 00 26 c8 05 6d | 61 69 6e 00 00 00 27 2f |&...&..m|ain...'/|
|000047d0| 00 00 27 35 07 51 75 69 | 63 6b 33 00 00 00 00 48 |..'5.Qui|ck3....H|
|000047e0| 00 09 4d 6f 6e 61 63 6f | 00 00 00 00 00 00 00 00 |..Monaco|........|
|000047f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004800| 00 00 00 03 00 04 00 3d | 00 03 02 30 02 ad 00 3d |.......=|...0...=|
|00004810| 00 03 02 30 02 ad ad 1c | ae 3b 00 00 2b 77 00 00 |...0....|.;..+w..|
|00004820| 2b 77 00 00 28 19 00 00 | 00 00 00 04 00 01 00 01 |+w..(...|........|
|00004830| 00 00 01 00 00 00 02 b0 | 00 00 01 b0 00 00 00 7a |........|.......z|
|00004840| 00 ca 0f 94 3e 10 00 00 | 00 1c 00 7a 00 03 4d 50 |....>...|...z..MP|
|00004850| 53 52 00 01 00 22 42 4b | 50 54 00 00 00 3a 44 54 |SR..."BK|PT...:DT|
|00004860| 56 55 00 00 00 46 4d 57 | 42 42 00 00 00 52 03 ef |VU...FMW|BB...R..|
|00004870| ff ff 00 00 01 20 00 00 | 00 00 03 ed ff ff 00 00 |..... ..|........|
|00004880| 01 5c 00 00 00 00 48 bd | ff ff 00 00 00 00 00 00 |.\....H.|........|
|00004890| 00 00 6c 73 ff ff 00 00 | 00 22 00 00 00 00 03 f0 |..ls....|."......|
|000048a0| ff ff 00 00 01 a8 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+